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

public Class TBSCertificateStructure

extends ASN1Object
implements X509ObjectIdentifiers, PKCSObjectIdentifiers
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.x509.X509ObjectIdentifiers
Imports
org.bouncycastle.asn1.ASN1BitString, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.x500.X500Name

Deprecated

use TBSCertificate

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 X509Extensions
extensions

References Deprecated X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.
pack-priv X500Name
pack-priv ASN1BitString
pack-priv ASN1Sequence
pack-priv ASN1Integer
pack-priv AlgorithmIdentifier
pack-priv X500Name
pack-priv SubjectPublicKeyInfo
pack-priv ASN1BitString
pack-priv Validity
pack-priv ASN1Integer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Time
public X509Extensions
getExtensions()
References Deprecated X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.

public static TBSCertificateStructure
getInstance(ASN1TaggedObject obj, boolean explicit)
References Deprecated TBSCertificateStructure is deprecated or references (maybe indirectly) at least one deprecated element.

public static TBSCertificateStructure
getInstance(Object obj)
References Deprecated TBSCertificateStructure is deprecated or references (maybe indirectly) at least one deprecated element.

public X500Name
public ASN1BitString
public ASN1Integer
public AlgorithmIdentifier
public Time
public X500Name
public SubjectPublicKeyInfo
public ASN1BitString
public Validity
public int
public ASN1Integer
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:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

extensionsback to summary
pack-priv X509Extensions extensions

References Deprecated

X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

issuerback to summary
pack-priv X500Name issuer
issuerUniqueIdback to summary
pack-priv ASN1BitString issuerUniqueId
seqback to summary
pack-priv ASN1Sequence seq
serialNumberback to summary
pack-priv ASN1Integer serialNumber
signatureback to summary
pack-priv AlgorithmIdentifier signature
subjectback to summary
pack-priv X500Name subject
subjectPublicKeyInfoback to summary
pack-priv SubjectPublicKeyInfo subjectPublicKeyInfo
subjectUniqueIdback to summary
pack-priv ASN1BitString subjectUniqueId
validityback to summary
pack-priv Validity validity
versionback to summary
pack-priv ASN1Integer version

Constructor Detail

TBSCertificateStructureback to summary
public TBSCertificateStructure(ASN1Sequence seq)

Method Detail

getEndDateback to summary
public Time getEndDate()
getExtensionsback to summary
public X509Extensions getExtensions()

References Deprecated

X509Extensions is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getInstanceback to summary
public static TBSCertificateStructure getInstance(ASN1TaggedObject obj, boolean explicit)

References Deprecated

TBSCertificateStructure is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getInstanceback to summary
public static TBSCertificateStructure getInstance(Object obj)

References Deprecated

TBSCertificateStructure is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getIssuerback to summary
public X500Name getIssuer()
getIssuerUniqueIdback to summary
public ASN1BitString 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 ASN1BitString getSubjectUniqueId()
getValidityback to summary
public Validity getValidity()
getVersionback to summary
public int getVersion()
getVersionNumberback to summary
public ASN1Integer 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.