Since: API level 37
public class

CertProvisioningManager

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

Class Overview

This class provides APIs related to Knox Zero Trust Cert Provisioning

Since
API level 37
KNOX 3.10

Summary

Public Constructors
CertProvisioningManager()
Public Methods
static CertProvisioningManager getInstance(Context context)
Get the CertProvisioningManager instance to use for the supplied Context object
int provisionCert(CertProvisionProfile provisionProfile, ICertProvisionListener listener)
Provision Certificate

NOTE: Since API level 38, if caller is neither a Device owner nor Profile owner, application needs to be authorized via AUTHORIZATION_PROVISION_CERT_ACME_SCEP scope using setAuthorizedScopes(AppIdentity, List) to call such API.

[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CertProvisioningManager ()

Since: API level 37

Public Methods

public static CertProvisioningManager getInstance (Context context)

Since: API level 37

Get the CertProvisioningManager instance to use for the supplied Context object

Parameters
context context of the application or service using this class
Returns
Since
API level 37
KNOX 3.10

public int provisionCert (CertProvisionProfile provisionProfile, ICertProvisionListener listener)

Since: API level 37

Provision Certificate

NOTE: Since API level 38, if caller is neither a Device owner nor Profile owner, application needs to be authorized via AUTHORIZATION_PROVISION_CERT_ACME_SCEP scope using setAuthorizedScopes(AppIdentity, List) to call such API.

Parameters
provisionProfile profile for certificate provisioning
listener listener to receive cert provisioning status
Returns
  • zero if successful, non-zero otherwise
Throws
KnoxZtException In case of failure due to permission or wrong argument reasons
Usage

Permission
The use of this API requires the caller to have the "com.samsung.android.knox.permission.KNOX_CERT_PROVISIONING" permission which has a protection level of signature. And caller should be a DO, WPC or KSP.
Since
API level 37
KNOX 3.10