Class TBSCertificate
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.util.Encodable
public class TBSCertificate extends ASN1Object
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
Fields Modifier and Type Field Description public ASN1Integer
version
public ASN1Integer
serialNumber
public AlgorithmIdentifier
signature
public X500Name
issuer
public Time
startDate
public Time
endDate
public X500Name
subject
public SubjectPublicKeyInfo
subjectPublicKeyInfo
public DERBitString
issuerUniqueId
public DERBitString
subjectUniqueId
public Extensions
extensions
-
Method Summary
Modifier and Type Method Description ASN1Integer
getVersion()
ASN1Integer
getSerialNumber()
AlgorithmIdentifier
getSignature()
X500Name
getIssuer()
Time
getStartDate()
Time
getEndDate()
X500Name
getSubject()
SubjectPublicKeyInfo
getSubjectPublicKeyInfo()
DERBitString
getIssuerUniqueId()
DERBitString
getSubjectUniqueId()
Extensions
getExtensions()
static TBSCertificate
getInstance(ASN1TaggedObject obj, boolean explicit)
static TBSCertificate
getInstance(Object obj)
int
getVersionNumber()
ASN1Primitive
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding. -
-
Method Detail
-
getVersion
ASN1Integer getVersion()
-
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
Extensions getExtensions()
-
getInstance
static TBSCertificate getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
static TBSCertificate getInstance(Object obj)
-
getVersionNumber
int getVersionNumber()
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
- Returns:
a primitive representation of this object.
-
-
-
-