Class CertificateEntry


  • @Internal
    public class CertificateEntry
    extends java.lang.Object
    CertificateEntry structure. This structure describes part of the data which is signed over in SCTs. It is not defined by the RFC6962, but it is useful to have. It's definition would be : struct { LogEntryType entry_type; select(entry_type) { case x509_entry: ASN.1Cert; case precert_entry: PreCert; } signed_entry; } CertificateEntry;
    • Field Detail

      • issuerKeyHash

        private final byte[] issuerKeyHash
      • certificate

        private final byte[] certificate
    • Method Detail

      • createForPrecertificate

        public static CertificateEntry createForPrecertificate​(byte[] tbsCertificate,
                                                               byte[] issuerKeyHash)
        Throws:
        java.lang.IllegalArgumentException - if issuerKeyHash isn't 32 bytes
      • createForX509Certificate

        public static CertificateEntry createForX509Certificate​(byte[] x509Certificate)
      • createForX509Certificate

        public static CertificateEntry createForX509Certificate​(java.security.cert.X509Certificate cert)
                                                         throws java.security.cert.CertificateEncodingException
        Throws:
        java.security.cert.CertificateEncodingException
      • getCertificate

        public byte[] getCertificate()
      • getIssuerKeyHash

        public byte[] getIssuerKeyHash()