public final class TBSCertificate extends Object
TBSCertificate ::= SEQUENCE {
version [0] EXPLICIT Version DEFAULT v1,
serialNumber CertificateSerialNumber,
signature AlgorithmIdentifier,
issuer Name,
validity Validity,
subject Name,
subjectPublicKeyInfo SubjectPublicKeyInfo,
issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,
-- If present, version MUST be v2 or v3
subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,
-- If present, version MUST be v2 or v3
extensions [3] EXPLICIT Extensions OPTIONAL
-- If present, version MUST be v3
}
| Modifier and Type | Field and Description |
|---|---|
static ASN1Sequence |
ASN1
X.509 TBSCertificate encoder/decoder.
|
| Constructor and Description |
|---|
TBSCertificate(int version,
BigInteger serialNumber,
AlgorithmIdentifier signature,
Name issuer,
Validity validity,
Name subject,
SubjectPublicKeyInfo subjectPublicKeyInfo,
boolean[] issuerUniqueID,
boolean[] subjectUniqueID,
Extensions extensions) |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpValue(StringBuilder sb) |
byte[] |
getEncoded()
Returns ASN.1 encoded form of this X.509 TBSCertificate value.
|
Extensions |
getExtensions()
Returns the value of extensions field of the structure.
|
Name |
getIssuer()
Returns the value of issuer field of the structure.
|
boolean[] |
getIssuerUniqueID()
Returns the value of issuerUniqueID field of the structure.
|
BigInteger |
getSerialNumber()
Returns the value of serialNumber field of the structure.
|
AlgorithmIdentifier |
getSignature()
Returns the value of signature field of the structure.
|
Name |
getSubject()
Returns the value of subject field of the structure.
|
SubjectPublicKeyInfo |
getSubjectPublicKeyInfo()
Returns the value of subjectPublicKeyInfo field of the structure.
|
boolean[] |
getSubjectUniqueID()
Returns the value of subjectUniqueID field of the structure.
|
Validity |
getValidity()
Returns the value of validity field of the structure.
|
int |
getVersion()
Returns the value of version field of the structure.
|
public static final ASN1Sequence ASN1
public TBSCertificate(int version,
BigInteger serialNumber,
AlgorithmIdentifier signature,
Name issuer,
Validity validity,
Name subject,
SubjectPublicKeyInfo subjectPublicKeyInfo,
boolean[] issuerUniqueID,
boolean[] subjectUniqueID,
Extensions extensions)
public int getVersion()
public BigInteger getSerialNumber()
public AlgorithmIdentifier getSignature()
public Name getIssuer()
public Validity getValidity()
public Name getSubject()
public SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public boolean[] getIssuerUniqueID()
public boolean[] getSubjectUniqueID()
public Extensions getExtensions()
public byte[] getEncoded()
public void dumpValue(StringBuilder sb)