Package org.bouncycastle.gpg.keybox
Class CertificateBlob
java.lang.Object
org.bouncycastle.gpg.keybox.Blob
org.bouncycastle.gpg.keybox.KeyBlob
org.bouncycastle.gpg.keybox.CertificateBlob
A PGP blob holds key material.
-
Field Summary
-
Method Summary
Methods inherited from class org.bouncycastle.gpg.keybox.KeyBlob
getAllValidity, getAssignedOwnerTrust, getBlobCreatedAt, getBlobFlags, getChecksum, getExpirationTime, getKeyBytes, getKeyInformation, getKeyNumber, getNewestTimestamp, getNumberOfSignatures, getNumberOfUserIDs, getRecheckAfter, getReserveBytes, getSerialNumber, getUserIds
Methods inherited from class org.bouncycastle.gpg.keybox.Blob
getType, getVersion
-
Method Details
-
getEncodedCertificate
public byte[] getEncodedCertificate()Return the encoded certificate.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));
- Returns:
-