Package org.bouncycastle.asn1.x509
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 Summary
Constructors Constructor 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 existingTBSCertificate, substituting the SubjectPublicKeyInfo with the supplied hash.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtensionsgetExtensions()static TBSCertificateLogEntrygetInstance(java.lang.Object obj)X500NamegetIssuer()ASN1BitStringgetIssuerUniqueID()X500NamegetSubject()AlgorithmIdentifiergetSubjectPublicKeyAlgorithm()ASN1OctetStringgetSubjectPublicKeyInfoHash()ASN1BitStringgetSubjectUniqueID()ValiditygetValidity()ASN1IntegergetVersion()ASN1PrimitivetoASN1Primitive()Method providing a primitive representation of this object suitable for encoding.-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Constructor Detail
-
TBSCertificateLogEntry
public TBSCertificateLogEntry(TBSCertificate tbsCert, byte[] subjectPublicKeyInfoHash)
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 Detail
-
getInstance
public static TBSCertificateLogEntry getInstance(java.lang.Object obj)
-
getVersion
public ASN1Integer getVersion()
-
getIssuer
public X500Name getIssuer()
-
getValidity
public Validity getValidity()
-
getSubject
public X500Name getSubject()
-
getSubjectPublicKeyAlgorithm
public AlgorithmIdentifier getSubjectPublicKeyAlgorithm()
-
getSubjectPublicKeyInfoHash
public ASN1OctetString getSubjectPublicKeyInfoHash()
-
getIssuerUniqueID
public ASN1BitString getIssuerUniqueID()
-
getSubjectUniqueID
public ASN1BitString getSubjectUniqueID()
-
getExtensions
public Extensions getExtensions()
-
toASN1Primitive
public ASN1Primitive 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.
-
-