install Certificates
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
usage Type
- certificate usage type CertUsageType
pem User Cert
- PEM encoded user cert
pem Priv Key
- PEM encoded private key associated with the user cert
pem Ca Cert
- 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
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
usage Type
- 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