java.lang.Object | |
↳ | com.samsung.android.knox.keystore.CEPConstants |
This class contains all required constant values which are used inside Certificate Enrollment service.
API level 12 |
KNOX 2.1 |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CEP_ACTION_CERT_ENROLL_STATUS | This broadcast is sent to inform caller about status of Certificate Enrollment request. | |||||||||
String | CEP_ACTION_SERVICE_DISCONNECTED | This broadcast is sent when the Certificate Enrollment service is uninstalled, stopped or de-activated as an admin. | |||||||||
String | CEP_KEYALGO_TYPE_RSA | Certificate Key pair Algorithm type for RSA. | |||||||||
String | CEP_KEYSTORETYPE_ANDROID | Keystore type constant for Android Keystore. | |||||||||
String | CEP_KEYSTORETYPE_CCM | Keystore type constant for CCM. | |||||||||
String | CEP_KEYSTORETYPE_UCM | Keystore Type constant for UCM. | |||||||||
int | CEP_TLV_CLEAR_CHALLENGE_PASSWORD | TLV type which tells that message is a clear text password. | |||||||||
int | CEP_TLV_ENCRYPTED_CHALLENGE_PASSWORD | TLV type which tells that message is an encrypted challenge password. | |||||||||
int | CEP_TLV_ENCRYPTED_DATA | TLV type which tells that message is an encrypted data. | |||||||||
int | CEP_TLV_ENCRYPTED_KEY | TLV type which tells that message is an encrypted AES key. | |||||||||
String | CERT_PROFILE_TYPE_CMC | Certificate Enrollment protocol is CMC. | |||||||||
String | CERT_PROFILE_TYPE_CMP | Certificate Enrollment protocol is CMP. | |||||||||
String | CERT_PROFILE_TYPE_SCEP | Certificate Enrollment protocol is SCEP. | |||||||||
int | CERT_SUCCESS | Success status for the operations enrollUserCertificate(EnrollmentProfile, List, String) ,
renewUserCertificate(String, List) , deleteUserCertificate(String) and
getCertEnrollmentStatus(String) |
|||||||||
int | ERROR_ALIAS_EXIST | Error code occurs when user tries to install a certificate with already existing alias. | |||||||||
int | ERROR_CCM | CCM related error for the operations enrollUserCertificate(EnrollmentProfile, List, String)
and renewUserCertificate(String, List) . |
|||||||||
int | ERROR_CCM_NOT_SUPPORTED | CCM Keystore is not supported. | |||||||||
int | ERROR_CERT_FAILURE | Failure status for the operations enrollUserCertificate(EnrollmentProfile, List, String) ,
renewUserCertificate(String, List) , deleteUserCertificate(String) and
getCertEnrollmentStatus(String) |
|||||||||
int | ERROR_CERT_NOT_FOUND | Crypto error code for certificate not found in the keystore. | |||||||||
int | ERROR_CERT_PENDING | Indicates pending status of certificate during enroll request. | |||||||||
int | ERROR_CERT_VERIFICATION_FAILURE | Crypto error code when certificate verification fails while doing Certificate Enrollment Protocol operations. | |||||||||
int | ERROR_CHALLENGE_PASSWORD_EXPIRED | Code for expiration of the challenge password for the operation enrollUserCertificate(EnrollmentProfile, List, String) . |
|||||||||
int | ERROR_INVALID_CA_CERT | Invalid CA certificate for operation enrollUserCertificate(EnrollmentProfile, List, String) . |
|||||||||
int | ERROR_KEYLOCK_NOT_SET | Keystore is not initialized or it is locked. | |||||||||
int | ERROR_KEYSTORE_EXCEPTION | Keystore exception for Certificate Enrollment Protocol operations. | |||||||||
int | ERROR_MISSING_INPUTFIELDS | Error code for missing input fields. | |||||||||
int | ERROR_NETWORK_UNAVAILABLE | Network related error for the operations enrollUserCertificate(EnrollmentProfile, List, String)
and renewUserCertificate(String, List) |
|||||||||
int | ERROR_OPERATION_NOT_SUPPORTED | Error code for operation not supported by Certificate Enrollment service. | |||||||||
int | ERROR_SERVICE_BIND_FAILED | Error in binding to Certificate Enrollment service. | |||||||||
int | ERROR_TLV_DECODE_FAILURE | Failure status for TLV decoding of challenge password for the operation enrollUserCertificate(EnrollmentProfile, List, String) . |
|||||||||
int | ERROR_TRANSACTIONID_NOTFOUND | Transaction Id not found error for the operation getCertEnrollmentStatus(String) . |
|||||||||
int | ERROR_UCM | Error code occurs when UCM framework fails to finish a task | |||||||||
int | ERROR_UCM_INPUT_INVALID | Error code occurs when inputs for UCM are invalid | |||||||||
int | ERROR_UNKNOWN | Unknown error for the operations enrollUserCertificate(EnrollmentProfile, List, String)
and renewUserCertificate(String, List) |
|||||||||
String | EXTRA_ENROLL_ALIAS | Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS . |
|||||||||
String | EXTRA_ENROLL_CERT_HASH | Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS . |
|||||||||
String | EXTRA_ENROLL_REFERENCE_NUMBER | Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS . |
|||||||||
String | EXTRA_ENROLL_STATUS | Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS . |
|||||||||
String | EXTRA_ENROLL_TRANSACTION_ID | Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS . |
|||||||||
String | EXTRA_SERVICE_PROTOCOL | Used as string extra field with CEP_ACTION_SERVICE_DISCONNECTED . |
|||||||||
String | EXTRA_SERVICE_USERID | Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS and CEP_ACTION_SERVICE_DISCONNECTED . |
|||||||||
String | EXTRA_UCM_CS_MANUFACTURER | Used as string extra field for UCM credential storage details This extra specifies the manufacturer of Credential Storage to be used/accessed. | |||||||||
String | EXTRA_UCM_CS_NAME | Used as string extra field for UCM credential storage details This extra specifies the name of Credential Storage to be used/accessed. | |||||||||
String | EXTRA_UCM_CS_PACKAGENAME | Used as string extra field for UCM credential storage details This extra specifies the packagename of Credential Storage to be used/accessed. | |||||||||
int | SERVICE_BIND_SUCCESS | Successful status while binding to Certificate Enrollment service. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This broadcast is sent to inform caller about status of Certificate Enrollment request.
This targeted broadcast is sent only to the caller who calls the enrollUserCertificate(EnrollmentProfile, List, String)
or
renewUserCertificate(String, List)
.
The intent will have the following extra value:
EXTRA_ENROLL_STATUS
:
CERT_SUCCESS
ERROR_CERT_FAILURE
ERROR_NETWORK_UNAVAILABLE
ERROR_UNKNOWN
ERROR_CCM
EXTRA_ENROLL_ALIAS
:
EXTRA_ENROLL_TRANSACTION_ID
:
EXTRA_ENROLL_REFERENCE_NUMBER
:
EXTRA_ENROLL_CERT_HASH
:
EXTRA_SERVICE_USERID
:
EXTRA_SERVICE_PROTOCOL
:
API level 12 |
KNOX 2.1 |
This broadcast is sent when the Certificate Enrollment service is uninstalled, stopped or de-activated as an admin.
This targeted broadcast is sent only to the caller which registers the receiver with the same intent action.
The intent will have the following extra value:
EXTRA_SERVICE_USERID
:
EXTRA_SERVICE_PROTOCOL
:
API level 12 |
KNOX 2.1 |
Certificate Key pair Algorithm type for RSA.
API level 12 |
KNOX 2.1 |
Keystore type constant for Android Keystore.
API level 12 |
KNOX 2.1 |
Keystore type constant for CCM.
API level 12 |
KNOX 2.1 |
Keystore Type constant for UCM.
API level 20 |
KNOX 2.7 |
TLV type which tells that message is a clear text password.
Refer challengePassword
for all TLV types.
API level 12 |
KNOX 2.1 |
TLV type which tells that message is an encrypted challenge password.
Refer challengePassword
for all TLV types.
API level 12 |
KNOX 2.1 |
TLV type which tells that message is an encrypted data.
Refer challengePassword
for all TLV types.
API level 12 |
KNOX 2.1 |
TLV type which tells that message is an encrypted AES key.
Refer challengePassword
for all TLV types.
API level 12 |
KNOX 2.1 |
Certificate Enrollment protocol is CMC.
API level 12 |
KNOX 2.1 |
Certificate Enrollment protocol is CMP.
API level 12 |
KNOX 2.1 |
Certificate Enrollment protocol is SCEP.
API level 12 |
KNOX 2.1 |
Success status for the operations enrollUserCertificate(EnrollmentProfile, List, String)
,
renewUserCertificate(String, List)
, deleteUserCertificate(String)
and
getCertEnrollmentStatus(String)
API level 12 |
KNOX 2.1 |
Error code occurs when user tries to install a certificate with already existing alias.
API level 12 |
KNOX 2.1 |
CCM related error for the operations enrollUserCertificate(EnrollmentProfile, List, String)
and renewUserCertificate(String, List)
.
API level 12 |
KNOX 2.1 |
CCM Keystore is not supported.
API level 12 |
KNOX 2.1 |
Failure status for the operations enrollUserCertificate(EnrollmentProfile, List, String)
,
renewUserCertificate(String, List)
, deleteUserCertificate(String)
and
getCertEnrollmentStatus(String)
API level 12 |
KNOX 2.1 |
Crypto error code for certificate not found in the keystore.
API level 12 |
KNOX 2.1 |
Indicates pending status of certificate during enroll request.
API level 12 |
KNOX 2.1 |
Crypto error code when certificate verification fails while doing Certificate Enrollment Protocol operations.
API level 12 |
KNOX 2.1 |
Code for expiration of the challenge password for the operation enrollUserCertificate(EnrollmentProfile, List, String)
.
Refer validitytimeForChallenge
API level 12 |
KNOX 2.1 |
Invalid CA certificate for operation enrollUserCertificate(EnrollmentProfile, List, String)
.
API level 12 |
KNOX 2.1 |
Keystore is not initialized or it is locked.
API level 12 |
KNOX 2.1 |
Keystore exception for Certificate Enrollment Protocol operations.
API level 12 |
KNOX 2.1 |
Error code for missing input fields.
It can occur for the following cases:
Missing hash while renewUserCertificate(String, List)
or enrollUserCertificate(EnrollmentProfile, List, String)
Missing txnId while getCertEnrollmentStatus(String)
Missing mandatory fields like scepUrl
or subjectName
API level 12 |
KNOX 2.1 |
Network related error for the operations enrollUserCertificate(EnrollmentProfile, List, String)
and renewUserCertificate(String, List)
API level 12 |
KNOX 2.1 |
Error code for operation not supported by Certificate Enrollment service.
API level 12 |
KNOX 2.1 |
Error in binding to Certificate Enrollment service.
API level 12 |
KNOX 2.1 |
Failure status for TLV decoding of challenge password for the operation enrollUserCertificate(EnrollmentProfile, List, String)
.
API level 12 |
KNOX 2.1 |
Transaction Id not found error for the operation getCertEnrollmentStatus(String)
.
API level 12 |
KNOX 2.1 |
Error code occurs when UCM framework fails to finish a task
API level 20 |
KNOX 2.7 |
Error code occurs when inputs for UCM are invalid
API level 20 |
KNOX 2.7 |
Unknown error for the operations enrollUserCertificate(EnrollmentProfile, List, String)
and renewUserCertificate(String, List)
API level 12 |
KNOX 2.1 |
Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS
.
Contains the alias of the certificate used in enrollment request or renewal request.
API level 12 |
KNOX 2.1 |
Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS
.
Contains the MD5 hash of the client certificate enrolled or renewed.
API level 12 |
KNOX 2.1 |
Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS
.
Contains the reference number of the Certificate Enrollment request or renewal request.
API level 12 |
KNOX 2.1 |
Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS
.
Contains the result of the Certificate Enrollment request or renewal request.
API level 12 |
KNOX 2.1 |
Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS
.
Contains the transaction id of the Certificate Enrollment request or renewal request.
API level 12 |
KNOX 2.1 |
Used as string extra field with CEP_ACTION_SERVICE_DISCONNECTED
.
This extra specifies the protocol supported by Certificate Enrollment service.
API level 12 |
KNOX 2.1 |
Used as string extra field with CEP_ACTION_CERT_ENROLL_STATUS
and CEP_ACTION_SERVICE_DISCONNECTED
.
Contains the container Id of the service. E.g. 0 for same user space as caller or the corresponding container ID.
API level 12 |
KNOX 2.1 |
Used as string extra field for UCM credential storage details This extra specifies the manufacturer of Credential Storage to be used/accessed.
API level 20 |
KNOX 2.7 |
Used as string extra field for UCM credential storage details This extra specifies the name of Credential Storage to be used/accessed.
API level 20 |
KNOX 2.7 |
Used as string extra field for UCM credential storage details This extra specifies the packagename of Credential Storage to be used/accessed.
API level 20 |
KNOX 2.7 |
Successful status while binding to Certificate Enrollment service.
API level 12 |
KNOX 2.1 |