Top Description Fields Constructors Methods
org.bouncycastle.asn1.x509

public Class TBSCertificate

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.asn1.ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERBitString, org.bouncycastle.asn1.x500.X500Name

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

Modifier and TypeField and Description
pack-priv Time
pack-priv Extensions
pack-priv X500Name
pack-priv DERBitString
pack-priv ASN1Sequence
pack-priv ASN1Integer
pack-priv AlgorithmIdentifier
pack-priv Time
pack-priv X500Name
pack-priv SubjectPublicKeyInfo
pack-priv DERBitString
pack-priv ASN1Integer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Time
public Extensions
public static TBSCertificate
getInstance(ASN1TaggedObject obj, boolean explicit)

public static TBSCertificate
public X500Name
public DERBitString
public ASN1Integer
public AlgorithmIdentifier
public Time
public X500Name
public SubjectPublicKeyInfo
public DERBitString
public ASN1Integer
public int
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

endDateback to summary
pack-priv Time endDate
extensionsback to summary
pack-priv Extensions extensions
issuerback to summary
pack-priv X500Name issuer
issuerUniqueIdback to summary
pack-priv DERBitString issuerUniqueId
seqback to summary
pack-priv ASN1Sequence seq
serialNumberback to summary
pack-priv ASN1Integer serialNumber
signatureback to summary
pack-priv AlgorithmIdentifier signature
startDateback to summary
pack-priv Time startDate
subjectback to summary
pack-priv X500Name subject
subjectPublicKeyInfoback to summary
pack-priv SubjectPublicKeyInfo subjectPublicKeyInfo
subjectUniqueIdback to summary
pack-priv DERBitString subjectUniqueId
versionback to summary
pack-priv ASN1Integer version

Constructor Detail

TBSCertificateback to summary
private TBSCertificate(ASN1Sequence seq)

Method Detail

getEndDateback to summary
public Time getEndDate()
getExtensionsback to summary
public Extensions getExtensions()
getInstanceback to summary
public static TBSCertificate getInstance(ASN1TaggedObject obj, boolean explicit)
getInstanceback to summary
public static TBSCertificate getInstance(Object obj)
getIssuerback to summary
public X500Name getIssuer()
getIssuerUniqueIdback to summary
public DERBitString getIssuerUniqueId()
getSerialNumberback to summary
public ASN1Integer getSerialNumber()
getSignatureback to summary
public AlgorithmIdentifier getSignature()
getStartDateback to summary
public Time getStartDate()
getSubjectback to summary
public X500Name getSubject()
getSubjectPublicKeyInfoback to summary
public SubjectPublicKeyInfo getSubjectPublicKeyInfo()
getSubjectUniqueIdback to summary
public DERBitString getSubjectUniqueId()
getVersionback to summary
public ASN1Integer getVersion()
getVersionNumberback to summary
public int getVersionNumber()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.