Class TBSCertificateStructure
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers
,io.anyline.nfc.bouncycastle.asn1.x509.X509ObjectIdentifiers
,io.anyline.nfc.bouncycastle.util.Encodable
public class TBSCertificateStructure extends ASN1Object implements X509ObjectIdentifiers, PKCSObjectIdentifiers
The TBSCertificate object.
TBSCertificate ::= SEQUENCE { version [ 0 ] Version DEFAULT v1(0), serialNumber CertificateSerialNumber, signature AlgorithmIdentifier, issuer Name, validity Validity, subject Name, subjectPublicKeyInfo SubjectPublicKeyInfo, issuerUniqueID [ 1 ] IMPLICIT UniqueIdentifier OPTIONAL, subjectUniqueID [ 2 ] IMPLICIT UniqueIdentifier OPTIONAL, extensions [ 3 ] Extensions OPTIONAL }
Note: issuerUniqueID and subjectUniqueID are both deprecated by the IETF. This class will parse them, but you really shouldn't be creating new ones.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TBSCertificateStructure(ASN1Sequence seq)
-
Method Summary
Modifier and Type Method Description ASN1Integer
getSerialNumber()
AlgorithmIdentifier
getSignature()
X500Name
getIssuer()
Time
getStartDate()
Time
getEndDate()
X500Name
getSubject()
SubjectPublicKeyInfo
getSubjectPublicKeyInfo()
DERBitString
getIssuerUniqueId()
DERBitString
getSubjectUniqueId()
X509Extensions
getExtensions()
static TBSCertificateStructure
getInstance(ASN1TaggedObject obj, boolean explicit)
static TBSCertificateStructure
getInstance(Object obj)
int
getVersion()
ASN1Integer
getVersionNumber()
ASN1Primitive
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding. -
-
Constructor Detail
-
TBSCertificateStructure
TBSCertificateStructure(ASN1Sequence seq)
-
-
Method Detail
-
getSerialNumber
ASN1Integer getSerialNumber()
-
getSignature
AlgorithmIdentifier getSignature()
-
getStartDate
Time getStartDate()
-
getEndDate
Time getEndDate()
-
getSubject
X500Name getSubject()
-
getSubjectPublicKeyInfo
SubjectPublicKeyInfo getSubjectPublicKeyInfo()
-
getIssuerUniqueId
DERBitString getIssuerUniqueId()
-
getSubjectUniqueId
DERBitString getSubjectUniqueId()
-
getExtensions
X509Extensions getExtensions()
-
getInstance
static TBSCertificateStructure getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
static TBSCertificateStructure getInstance(Object obj)
-
getVersion
int getVersion()
-
getVersionNumber
ASN1Integer getVersionNumber()
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
- Returns:
a primitive representation of this object.
-
-
-
-