Class TBSCertificateLogEntry

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.TBSCertificateLogEntry
All Implemented Interfaces:
ASN1Encodable, Encodable

public class TBSCertificateLogEntry extends ASN1Object
Represents the ASN.1 structure TBSCertificateLogEntry.

TBSCertificateLogEntry ::= SEQUENCE { version [0] EXPLICIT Version DEFAULT v1, issuer Name, validity Validity, subject Name, subjectPublicKeyAlgorithm AlgorithmIdentifier, subjectPublicKeyInfoHash OCTET STRING, issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL, subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL, extensions [3] EXPLICIT Extensions OPTIONAL }

This structure is similar to the TBSCertificate defined in TBSCertificate, but replaces the SubjectPublicKeyInfo with a hash of the SubjectPublicKeyInfo.

  • Constructor Details

    • TBSCertificateLogEntry

      public TBSCertificateLogEntry(TBSCertificate tbsCert, byte[] subjectPublicKeyInfoHash)
      Convenience constructor that mirrors the per-entry fields of an existing TBSCertificate, substituting the SubjectPublicKeyInfo with the supplied hash. Version, issuer, validity, subject, the public-key algorithm, unique IDs and extensions are copied from tbsCert; the serial number and outer signature algorithm carried by the TBSCertificate are intentionally not represented here.
      Parameters:
      tbsCert - TBSCertificate to copy the shared fields from.
      subjectPublicKeyInfoHash - hash of the encoded SubjectPublicKeyInfo.
    • TBSCertificateLogEntry

      public TBSCertificateLogEntry(ASN1Integer version, X500Name issuer, Validity validity, X500Name subject, AlgorithmIdentifier subjectPublicKeyAlgorithm, ASN1OctetString subjectPublicKeyInfoHash, ASN1BitString issuerUniqueID, ASN1BitString subjectUniqueID, Extensions extensions)
  • Method Details