Since: API level 37
public class

CertProvisionProfile

extends Object
java.lang.Object
   ↳ com.samsung.android.knox.zt.devicetrust.cert.CertProvisionProfile

Class Overview

This class provides APIs related to Certificate provision profile

Since
API level 37
KNOX 3.10

Summary

Nested Classes
class CertProvisionProfile.Builder Builder class to create Certificate provision profile  
Constants
String CA_DEFAULT Use the CA server set through builder
String CA_LOOPBACK Use loopback CA server.
int CLIENT_ID_TYPE_IMEI Use IMEI type of client identifier
int CLIENT_ID_TYPE_SAK_UID Use SAK_UID type of client identifier
int KEY_OWNER_APP Use key generated by app
int KEY_OWNER_SYSTEM Use key generated by system
int KEY_PURPOSE_ENCRYPT Use key which purpose is encrypt
int KEY_PURPOSE_SIGN Use key which purpose is signing
String KEY_TYPE_EC Use key which type is EC
String KEY_TYPE_RSA Use key which type is RSA
String PROTOCOL_ACME Use ACME protocol
String PROTOCOL_SCEP Use SCEP protocol
String PROVIDER_ANDROID Use key provider as Android keystore
String PROVIDER_UCM Use key provider as UCM keystore
String SAN_DNS_NAME Key string to DNS in SubjectAltName field to be sent in bundle
String SAN_IP_ADDRESS Key string to ip address in SubjectAltName field to be sent in bundle
String SAN_RFC822_NAME Key string to rfc822 name in SubjectAltName field to be sent in bundle
String SAN_URI Key string to URI in SubjectAltName field to be sent in bundle
String TYPE_PROVISION Provision a new certificate
String TYPE_RENEW Renew a generated certificate
String TYPE_REVOKE Revoke a generated certificate
Public Constructors
CertProvisionProfile()
Public Methods
String getChallengePassword()
Get a certificate challenge password to communicate certificate server.
int getClientIdentifierType()
Get a type of client identifier.
List<String> getClientIdentifiers()
Get a client identifier.
String getKeyAlias()
Get a key alias to be provisioned.
List<String> getKeyExtendedPurposes()
Get a list of extended purposes of key to be provisioned.
int getKeyOwner()
Get a key owner to be provisioned.
String getKeyProvider()
Get a provider of the key.
String getProtocol()
Get a protocol used when remote certificate provisioning.
String getProvisionType()
Get a provision type.
String getRootCA()
Get a root of CA when remote certificate provisioning.
String getServerHost()
Get a certificate server host address.
String getServerPath()
Get a certificate server path.
String getServerPort()
Get a certificate server port.
Bundle getSubject()
Get a bundle of subject that will be written into certificate.
Bundle getSubjectAltName()
Get a bundle of subject alternative name that will be written into certificate.
static List<Integer> getSupportedClientIdentifierTypes()
Get a supported type of client identifier list.
static List<Integer> getSupportedKeyOwners()
Get a supported owner of the key list.
static List<String> getSupportedKeyProviders()
Get a supported key provider list.
static List<String> getSupportedProtocols()
Get a supported protocol list.
static List<String> getSupportedProvisionTypes()
Get a supported provision type list.
static List<String> getSupportedRootCAs()
Get a supported root of CA list.
static List<String> getSupportedSubjectAltName()
Get a supported subject alternative name list.
static List<Integer> getSupportedSystemKeyPurposes()
Get a supported owner of system key list.
static List<String> getSupportedSystemKeyTypes()
Get a supported algorithm of system key list.
int getSystemKeyPurposes()
Get a purposes of key which is generated by system to be provisioned.
int getSystemKeySize()
Get a size of key which is generated by system to be provisioned.
String getSystemKeyType()
Get an algorithm of key which is generated by system to be provisioned.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CA_DEFAULT

Since: API level 37

Use the CA server set through builder

Since
API level 37
KNOX 3.10
Constant Value: "default"

public static final String CA_LOOPBACK

Since: API level 37

Use loopback CA server. Only for a test

Since
API level 37
KNOX 3.10
Constant Value: "loopback"

public static final int CLIENT_ID_TYPE_IMEI

Since: API level 37

Use IMEI type of client identifier

Since
API level 37
KNOX 3.10
Constant Value: 0 (0x00000000)

public static final int CLIENT_ID_TYPE_SAK_UID

Since: API level 37

Use SAK_UID type of client identifier

Since
API level 37
KNOX 3.10
Constant Value: 1 (0x00000001)

public static final int KEY_OWNER_APP

Since: API level 37

Use key generated by app

Since
API level 37
KNOX 3.10
Constant Value: 1 (0x00000001)

public static final int KEY_OWNER_SYSTEM

Since: API level 37

Use key generated by system

Since
API level 37
KNOX 3.10
Constant Value: 0 (0x00000000)

public static final int KEY_PURPOSE_ENCRYPT

Since: API level 37

Use key which purpose is encrypt

Since
API level 37
KNOX 3.10
Constant Value: 1 (0x00000001)

public static final int KEY_PURPOSE_SIGN

Since: API level 37

Use key which purpose is signing

Since
API level 37
KNOX 3.10
Constant Value: 4 (0x00000004)

public static final String KEY_TYPE_EC

Since: API level 37

Use key which type is EC

Since
API level 37
KNOX 3.10
Constant Value: "EC"

public static final String KEY_TYPE_RSA

Since: API level 37

Use key which type is RSA

Since
API level 37
KNOX 3.10
Constant Value: "RSA"

public static final String PROTOCOL_ACME

Since: API level 37

Use ACME protocol

Since
API level 37
KNOX 3.10
Constant Value: "acme"

public static final String PROTOCOL_SCEP

Since: API level 37

Use SCEP protocol

Since
API level 37
KNOX 3.10
Constant Value: "scep"

public static final String PROVIDER_ANDROID

Since: API level 37

Use key provider as Android keystore

Since
API level 37
KNOX 3.10
Constant Value: "AndroidKeyStore"

public static final String PROVIDER_UCM

Since: API level 37

Use key provider as UCM keystore

Since
API level 37
KNOX 3.10
Constant Value: "UcmKeystore"

public static final String SAN_DNS_NAME

Since: API level 37

Key string to DNS in SubjectAltName field to be sent in bundle

Since
API level 37
KNOX 3.10
Constant Value: "dNSName"

public static final String SAN_IP_ADDRESS

Since: API level 37

Key string to ip address in SubjectAltName field to be sent in bundle

Since
API level 37
KNOX 3.10
Constant Value: "iPAddress"

public static final String SAN_RFC822_NAME

Since: API level 37

Key string to rfc822 name in SubjectAltName field to be sent in bundle

Since
API level 37
KNOX 3.10
Constant Value: "rfc822Name"

public static final String SAN_URI

Since: API level 37

Key string to URI in SubjectAltName field to be sent in bundle

Since
API level 37
KNOX 3.10
Constant Value: "uniformResourceIdentifier"

public static final String TYPE_PROVISION

Since: API level 37

Provision a new certificate

Since
API level 37
KNOX 3.10
Constant Value: "provision"

public static final String TYPE_RENEW

Since: API level 37

Renew a generated certificate

Since
API level 37
KNOX 3.10
Constant Value: "renew"

public static final String TYPE_REVOKE

Since: API level 37

Revoke a generated certificate

Since
API level 37
KNOX 3.10
Constant Value: "revoke"

Public Constructors

public CertProvisionProfile ()

Since: API level 37

Public Methods

public String getChallengePassword ()

Since: API level 37

Get a certificate challenge password to communicate certificate server.

Since
API level 37
KNOX 3.10

public int getClientIdentifierType ()

Since: API level 37

Get a type of client identifier.

Since
API level 37
KNOX 3.10

public List<String> getClientIdentifiers ()

Since: API level 37

Get a client identifier.

Since
API level 37
KNOX 3.10

public String getKeyAlias ()

Since: API level 37

Get a key alias to be provisioned.

Since
API level 37
KNOX 3.10

public List<String> getKeyExtendedPurposes ()

Since: API level 37

Get a list of extended purposes of key to be provisioned.

Since
API level 37
KNOX 3.10

public int getKeyOwner ()

Since: API level 37

Get a key owner to be provisioned.

Since
API level 37
KNOX 3.10

public String getKeyProvider ()

Since: API level 37

Get a provider of the key.

Since
API level 37
KNOX 3.10

public String getProtocol ()

Since: API level 37

Get a protocol used when remote certificate provisioning.

Since
API level 37
KNOX 3.10

public String getProvisionType ()

Since: API level 37

Get a provision type.

Since
API level 37
KNOX 3.10

public String getRootCA ()

Since: API level 37

Get a root of CA when remote certificate provisioning.

Since
API level 37
KNOX 3.10

public String getServerHost ()

Since: API level 37

Get a certificate server host address.

Since
API level 37
KNOX 3.10

public String getServerPath ()

Since: API level 37

Get a certificate server path.

Since
API level 37
KNOX 3.10

public String getServerPort ()

Since: API level 37

Get a certificate server port.

Since
API level 37
KNOX 3.10

public Bundle getSubject ()

Since: API level 37

Get a bundle of subject that will be written into certificate.

Since
API level 37
KNOX 3.10

public Bundle getSubjectAltName ()

Since: API level 37

Get a bundle of subject alternative name that will be written into certificate.

Since
API level 37
KNOX 3.10

public static List<Integer> getSupportedClientIdentifierTypes ()

Since: API level 37

Get a supported type of client identifier list.

Since
API level 37
KNOX 3.10

public static List<Integer> getSupportedKeyOwners ()

Since: API level 37

Get a supported owner of the key list.

Since
API level 37
KNOX 3.10

public static List<String> getSupportedKeyProviders ()

Since: API level 37

Get a supported key provider list.

Since
API level 37
KNOX 3.10

public static List<String> getSupportedProtocols ()

Since: API level 37

Get a supported protocol list.

Since
API level 37
KNOX 3.10

public static List<String> getSupportedProvisionTypes ()

Since: API level 37

Get a supported provision type list.

Since
API level 37
KNOX 3.10

public static List<String> getSupportedRootCAs ()

Since: API level 37

Get a supported root of CA list.

Since
API level 37
KNOX 3.10

public static List<String> getSupportedSubjectAltName ()

Since: API level 37

Get a supported subject alternative name list.

Since
API level 37
KNOX 3.10

public static List<Integer> getSupportedSystemKeyPurposes ()

Since: API level 37

Get a supported owner of system key list.

Since
API level 37
KNOX 3.10

public static List<String> getSupportedSystemKeyTypes ()

Since: API level 37

Get a supported algorithm of system key list.

Since
API level 37
KNOX 3.10

public int getSystemKeyPurposes ()

Since: API level 37

Get a purposes of key which is generated by system to be provisioned.

Since
API level 37
KNOX 3.10

public int getSystemKeySize ()

Since: API level 37

Get a size of key which is generated by system to be provisioned.

Since
API level 37
KNOX 3.10

public String getSystemKeyType ()

Since: API level 37

Get an algorithm of key which is generated by system to be provisioned.

Since
API level 37
KNOX 3.10