public class CertificateBlob extends KeyBlob
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncodedCertificate()
Return the encoded certificate.
|
getAllValidity, getAssignedOwnerTrust, getBlobCreatedAt, getBlobFlags, getChecksum, getExpirationTime, getKeyBytes, getKeyInformation, getKeyNumber, getNewestTimestamp, getNumberOfSignatures, getNumberOfUserIDs, getRecheckAfter, getReserveBytes, getSerialNumber, getUserIds
getType, getVersion
public byte[] getEncodedCertificate()
This is the raw certificate data, if you are using the JCA then you can convert it back to an X509 Certificate using.
Example: byte[] certData = keyBlob.getEncodedCertificate(); CertificateFactory factory = CertificateFactory.getInstance("X509"); certificate = factory.generateCertificate(new ByteArrayInputStream(certData));