public class TBSCertificate extends ASN1Object
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.
| Constructor and Description |
|---|
TBSCertificate(ASN1Integer version,
ASN1Integer serialNumber,
AlgorithmIdentifier signature,
X500Name issuer,
Validity validity,
X500Name subject,
SubjectPublicKeyInfo subjectPublicKeyInfo,
ASN1BitString issuerUniqueId,
ASN1BitString subjectUniqueId,
Extensions extensions) |
| Modifier and Type | Method and Description |
|---|---|
Time |
getEndDate() |
Extensions |
getExtensions() |
static TBSCertificate |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static TBSCertificate |
getInstance(java.lang.Object obj) |
X500Name |
getIssuer() |
ASN1BitString |
getIssuerUniqueId() |
ASN1Integer |
getSerialNumber() |
AlgorithmIdentifier |
getSignature() |
Time |
getStartDate() |
X500Name |
getSubject() |
SubjectPublicKeyInfo |
getSubjectPublicKeyInfo() |
ASN1BitString |
getSubjectUniqueId() |
Validity |
getValidity() |
ASN1Integer |
getVersion() |
int |
getVersionNumber() |
static java.util.List |
reviewStructure(ASN1Sequence seq)
Re-run the parse of a candidate tbsCertificate SEQUENCE collecting every problem the
strict
getInstance(...) path would have thrown, instead of stopping at the
first. |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCodepublic TBSCertificate(ASN1Integer version, ASN1Integer serialNumber, AlgorithmIdentifier signature, X500Name issuer, Validity validity, X500Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, ASN1BitString issuerUniqueId, ASN1BitString subjectUniqueId, Extensions extensions)
public static TBSCertificate getInstance(ASN1TaggedObject obj, boolean explicit)
public static TBSCertificate getInstance(java.lang.Object obj)
public static java.util.List reviewStructure(ASN1Sequence seq)
getInstance(...) path would have thrown, instead of stopping at the
first. The strict path and this share one parse method (see parse(org.bouncycastle.asn1.ASN1Sequence, java.util.List)); the only
difference is the error sink. Intended for diagnostic/reporting tooling
(e.g. org.bouncycastle.cert.X509CertificateReviewer, github #1508); it does
not relax any rule and does not publish a partially-parsed certificate.seq - the candidate tbsCertificate SEQUENCE.public int getVersionNumber()
public ASN1Integer getVersion()
public ASN1Integer getSerialNumber()
public AlgorithmIdentifier getSignature()
public X500Name getIssuer()
public Validity getValidity()
public Time getStartDate()
public Time getEndDate()
public X500Name getSubject()
public SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public ASN1BitString getIssuerUniqueId()
public ASN1BitString getSubjectUniqueId()
public Extensions getExtensions()
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object