Class PkiCertificate

Package: com.ibm.pki.rpkiserv

public class PkiCertificate
extends java.lang.Object
Contains a certificate generated by PKI Services. The PkiCertificate class defines the following static constant integers to be used in determining the type (format) of certificate exported:
Integer
Meaning
PkiCertificate.PKIS_CERTIFICATE_TYPE_BASE64
Certificate is BASE64-encoded
PkiCertificate.PKIS_CERTIFICATE_TYPE_DER
Certificate is DER-encoded
PkiCertificate.PKIS_CERTIFICATE_TYPE_PKCS12
Certificate is DER-encoded PKCS #12
PkiCertificate.PKIS_CERTIFICATE_TYPE_PKCS7_CHAIN
Certificate is DER-encoded PKCS #7 chain
Method summary
public java.lang.String getBase64Encoded()

Certificate in Base64 format. Use this method if the certificate type is PKIS_CERTIFICATE_TYPE_BASE64.

public byte[] getDerEncoded()
Certificate in DER format. Use this method if the certificate type is one of the DER types:
  • PKIS_CERTIFICATE_TYPE_DER
  • PKIS_CERTIFICATE_TYPE_DER_PKCS7_CHAIN
  • PKIS_CERTIFICATE_TYPE_DER_PKCS12
public int getType()

Returns the certificate type.