| java.lang.Object org.apache.harmony.security.x509.TBSCertificate
TBSCertificate | public class TBSCertificate (Code) | | The class encapsulates the ASN.1 DER encoding/decoding work
with TBSCertificate structure which is the part of X.509 certificate
(as specified in RFC 3280 -
Internet X.509 Public Key Infrastructure.
Certificate and Certificate Revocation List (CRL) Profile.
http://www.ietf.org/rfc/rfc3280.txt):
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
}
|
Constructor Summary | |
public | TBSCertificate(int version, BigInteger serialNumber, AlgorithmIdentifier signature, Name issuer, Validity validity, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo) | public | TBSCertificate(int version, BigInteger serialNumber, AlgorithmIdentifier signature, Name issuer, Validity validity, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, boolean[] issuerUniqueID, boolean[] subjectUniqueID, Extensions extensions) |
encoding | byte[] encoding(Code) | | |
TBSCertificate | public TBSCertificate(int version, BigInteger serialNumber, AlgorithmIdentifier signature, Name issuer, Validity validity, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo)(Code) | | Constructs the instance of TBSCertificate without optional
fields (issuerUniqueID, subjectUniqueID, extensions)
Parameters: version - : int Parameters: serialNumber - : BigInteger Parameters: signature - : AlgorithmIdentifier Parameters: issuer - : Name Parameters: validity - : Validity Parameters: subject - : Name Parameters: subjectPublicKeyInfo - : SubjectPublicKeyInfo |
TBSCertificate | public TBSCertificate(int version, BigInteger serialNumber, AlgorithmIdentifier signature, Name issuer, Validity validity, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, boolean[] issuerUniqueID, boolean[] subjectUniqueID, Extensions extensions)(Code) | | TODO
version: int serialNumber: BigInteger signature: AlgorithmIdentifier issuer: Name validity: Validity subject: Name subjectPublicKeyInfo: SubjectPublicKeyInfo issuerUniqueID: byte[] subjectUniqueID: byte[] extensions: Extensions |
dumpValue | public void dumpValue(StringBuffer buffer)(Code) | | Places the string representation into the StringBuffer object.
|
getEncoded | public byte[] getEncoded()(Code) | | Returns ASN.1 encoded form of this X.509 TBSCertificate value.
a byte array containing ASN.1 encode form. |
getExtensions | public Extensions getExtensions()(Code) | | Returns the value of extensions field of the structure.
extensions |
getIssuer | public Name getIssuer()(Code) | | Returns the value of issuer field of the structure.
issuer |
getIssuerUniqueID | public boolean[] getIssuerUniqueID()(Code) | | Returns the value of issuerUniqueID field of the structure.
issuerUniqueID |
getSerialNumber | public BigInteger getSerialNumber()(Code) | | Returns the value of serialNumber field of the structure.
serialNumber |
getSubject | public Name getSubject()(Code) | | Returns the value of subject field of the structure.
subject |
getSubjectPublicKeyInfo | public SubjectPublicKeyInfo getSubjectPublicKeyInfo()(Code) | | Returns the value of subjectPublicKeyInfo field of the structure.
subjectPublicKeyInfo |
getSubjectUniqueID | public boolean[] getSubjectUniqueID()(Code) | | Returns the value of subjectUniqueID field of the structure.
subjectUniqueID |
getValidity | public Validity getValidity()(Code) | | Returns the value of validity field of the structure.
validity |
getVersion | public int getVersion()(Code) | | Returns the value of version field of the structure.
version |
|
|