Class TBSCertificateLogEntry
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.TBSCertificateLogEntry
- All Implemented Interfaces:
ASN1Encodable, Encodable
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 Summary
ConstructorsConstructorDescriptionTBSCertificateLogEntry(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 existingTBSCertificate, substituting the SubjectPublicKeyInfo with the supplied hash. -
Method Summary
Modifier and TypeMethodDescriptionstatic TBSCertificateLogEntrygetInstance(Object obj) Method providing a primitive representation of this object suitable for encoding.Methods inherited from class ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
TBSCertificateLogEntry
Convenience constructor that mirrors the per-entry fields of an existingTBSCertificate, substituting the SubjectPublicKeyInfo with the supplied hash. Version, issuer, validity, subject, the public-key algorithm, unique IDs and extensions are copied fromtbsCert; 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
-
getInstance
-
getVersion
-
getIssuer
-
getValidity
-
getSubject
-
getSubjectPublicKeyAlgorithm
-
getSubjectPublicKeyInfoHash
-
getIssuerUniqueID
-
getSubjectUniqueID
-
getExtensions
-
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-