public class CertificateBlob extends KeyBlob
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
getEncodedCertificate() |
Return the encoded certificate.
|
getType, getVersiongetAllValidity, getAssignedOwnerTrust, getBlobCreatedAt, getBlobFlags, getChecksum, getExpirationTime, getKeyBytes, getKeyInformation, getKeyNumber, getNewestTimestamp, getNumberOfSignatures, getNumberOfUserIDs, getRecheckAfter, getReserveBytes, getSerialNumber, getUserIdspublic 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));