public class TBSCertificateLogEntry extends ASN1Object
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 and Description |
|---|
TBSCertificateLogEntry(ASN1Integer version,
X500Name issuer,
Validity validity,
X500Name subject,
AlgorithmIdentifier subjectPublicKeyAlgorithm,
ASN1OctetString subjectPublicKeyInfoHash,
ASN1BitString issuerUniqueID,
ASN1BitString subjectUniqueID,
Extensions extensions) |
TBSCertificateLogEntry(TBSCertificate tbsCert,
byte[] subjectPublicKeyInfoHash)
Convenience constructor that mirrors the per-entry fields of an existing
TBSCertificate, substituting the SubjectPublicKeyInfo with the
supplied hash. |
| Modifier and Type | Method and Description |
|---|---|
Extensions |
getExtensions() |
static TBSCertificateLogEntry |
getInstance(java.lang.Object obj) |
X500Name |
getIssuer() |
ASN1BitString |
getIssuerUniqueID() |
X500Name |
getSubject() |
AlgorithmIdentifier |
getSubjectPublicKeyAlgorithm() |
ASN1OctetString |
getSubjectPublicKeyInfoHash() |
ASN1BitString |
getSubjectUniqueID() |
Validity |
getValidity() |
ASN1Integer |
getVersion() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCodepublic TBSCertificateLogEntry(TBSCertificate tbsCert, byte[] subjectPublicKeyInfoHash)
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.tbsCert - TBSCertificate to copy the shared fields from.subjectPublicKeyInfoHash - hash of the encoded SubjectPublicKeyInfo.public TBSCertificateLogEntry(ASN1Integer version, X500Name issuer, Validity validity, X500Name subject, AlgorithmIdentifier subjectPublicKeyAlgorithm, ASN1OctetString subjectPublicKeyInfoHash, ASN1BitString issuerUniqueID, ASN1BitString subjectUniqueID, Extensions extensions)
public static TBSCertificateLogEntry getInstance(java.lang.Object obj)
public ASN1Integer getVersion()
public X500Name getIssuer()
public Validity getValidity()
public X500Name getSubject()
public AlgorithmIdentifier getSubjectPublicKeyAlgorithm()
public ASN1OctetString getSubjectPublicKeyInfoHash()
public ASN1BitString getIssuerUniqueID()
public ASN1BitString getSubjectUniqueID()
public Extensions getExtensions()
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object