Package org.bouncycastle.asn1.x509
Class TBSCertificate
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.TBSCertificate
- All Implemented Interfaces:
ASN1Encodable
,Encodable
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TBSCertificate
getInstance
(Object obj) static TBSCertificate
getInstance
(ASN1TaggedObject obj, boolean explicit) int
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
-
Method Details
-
getInstance
-
getInstance
-
getVersionNumber
public int getVersionNumber() -
getVersion
-
getSerialNumber
-
getSignature
-
getIssuer
-
getStartDate
-
getEndDate
-
getSubject
-
getSubjectPublicKeyInfo
-
getIssuerUniqueId
-
getSubjectUniqueId
-
getExtensions
-
toASN1Primitive
Description copied from class:ASN1Object
Method providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-