Class CertificateBlob


  • public class CertificateBlob
    extends KeyBlob
    A PGP blob holds key material.
    • Method Detail

      • 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: