Since: API level 12
public abstract class

EnrollmentProfile

extends Object
implements Parcelable
java.lang.Object
   ↳ com.samsung.android.knox.keystore.EnrollmentProfile
Known Direct Subclasses

Class Overview

Abstract class which defines a basic profile for certificate enrollment. It can be extended to concrete implementations for SCEP, CMP or CMC.

Since
API level 12
KNOX 2.1

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public String certificateAlias Certificate alias which is used to install certificate.
public Bundle credentialStorageBundle Credential Storage for usage with UCM
public String hashAlgorithmType Hash algorithm type through which 'caCertHash' param is computed and sent in enrollUserCertificate(EnrollmentProfile, List, String) In enrollUserCertificate API, if 'caCertHash' param is not sent, then do not set this field.
public String keyPairAlgorithm Algorithm for generating key pair.
public int keySize Key size for generating key pair.
public String keystoreType Keystore which is used to store certificates.
public String profileType It defines the profile type.
Public Constructors
EnrollmentProfile()
Public Methods
String getCertificateAlias()
Returns the Certificate alias which is used for installing certificate.
String getKeyPairAlgorithm()
Returns the keyPairAlgorithm which is used for generating key pair.
int getKeySize()
Returns the Key Size for generating key pair (Optional).
String getKeystoreType()
Returns Keystore which is used to store certificates.
abstract String getProfileType()
Returns the profile type.
void setCertificateAlias(String certificateAlias)
Sets the Certificate alias which is used for installing certificate.
void setKeyPairAlgorithm(String keyPairAlgorithm)
Sets the Algorithm for generating key pair (Optional)
void setKeySize(int keySize)
Sets the key size for generating key pair (Optional).
void setKeystoreType(String keystoreType)
Sets Keystore which is used to store certificates.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public String certificateAlias

Since: API level 12

Certificate alias which is used to install certificate. (Optional)

Since
API level 12
KNOX 2.1

public Bundle credentialStorageBundle

Since: API level 20

Credential Storage for usage with UCM

Since
API level 20
KNOX 2.7

public String hashAlgorithmType

Since: API level 20

Hash algorithm type through which 'caCertHash' param is computed and sent in enrollUserCertificate(EnrollmentProfile, List, String) In enrollUserCertificate API, if 'caCertHash' param is not sent, then do not set this field.

Since
API level 20
KNOX 2.7

public String keyPairAlgorithm

Since: API level 12

Algorithm for generating key pair. (Optional)

Since
API level 12
KNOX 2.1

public int keySize

Since: API level 12

Key size for generating key pair. Default key size is 2048. (optional)

Since
API level 12
KNOX 2.1

public String keystoreType

Since: API level 12

Keystore which is used to store certificates.
It can be either CEP_KEYSTORETYPE_CCM or CEP_KEYSTORETYPE_ANDROID.

Since
API level 12
KNOX 2.1

public String profileType

Since: API level 12

It defines the profile type.

Since
API level 12
KNOX 2.1

Public Constructors

public EnrollmentProfile ()

Since: API level 12

Public Methods

public String getCertificateAlias ()

Since: API level 12

Returns the Certificate alias which is used for installing certificate.

Returns
  • certificateAlias
Since
API level 12
KNOX 2.1

public String getKeyPairAlgorithm ()

Since: API level 12

Returns the keyPairAlgorithm which is used for generating key pair.

Returns
Since
API level 12
KNOX 2.1

public int getKeySize ()

Since: API level 12

Returns the Key Size for generating key pair (Optional). Default is 2048.

Returns
  • key size
Since
API level 12
KNOX 2.1

public String getKeystoreType ()

Since: API level 12

Returns Keystore which is used to store certificates.

Returns
Since
API level 12
KNOX 2.1

public abstract String getProfileType ()

Since: API level 12

Returns the profile type.

Returns
Since
API level 12
KNOX 2.1

public void setCertificateAlias (String certificateAlias)

Since: API level 12

Sets the Certificate alias which is used for installing certificate. (Optional)

Since
API level 12
KNOX 2.1

public void setKeyPairAlgorithm (String keyPairAlgorithm)

Since: API level 12

Sets the Algorithm for generating key pair (Optional)

Parameters
keyPairAlgorithm such as CEP_KEYALGO_TYPE_RSA for RSA.
Since
API level 12
KNOX 2.1

public void setKeySize (int keySize)

Since: API level 12

Sets the key size for generating key pair (Optional). Default is 2048.

Since
API level 12
KNOX 2.1

public void setKeystoreType (String keystoreType)

Since: API level 12

Sets Keystore which is used to store certificates.

Parameters
keystoreType such as CEP_KEYSTORETYPE_CCM or CEP_KEYSTORETYPE_ANDROID.
Since
API level 12
KNOX 2.1