installCertificates

@MinApiLevel(value = 4)
public void installCertificates(CertUsageType usageType, String pemUserCert, String pemPrivKey, String pemCaCert, String alias)

Allows user to install PEM encoded certs and private key in keystore determined by CertUsageType.

Parameters

usageType

- certificate usage type CertUsageType

pemUserCert

- PEM encoded user cert

pemPrivKey

- PEM encoded private key associated with the user cert

pemCaCert

- PEM encoded cert of the CA which issued the user cert

alias

- alias name for the above tuple in the keystore

Throws

if operation fails


@MinApiLevel(value = 4)
public void installCertificates(CertUsageType usageType, Array<byte> pkcs12Data, String password, String alias)

Allows user to install certs and private key in Ethernet keystore from PKCS12 encoded data.

Parameters

usageType

- certificate usage type CertUsageType

pkcs12Data

- byte array containing device cert, device private key and CA cert encoded in PKCS12 format

password

- password with which the pkcs12 data is protected

alias

- alias name for the above tuple in the keystore

Throws

if operation fails