org.mozilla.jss.pkix.cert
public class CertificateInfo extends Object implements ASN1Value
| Nested Class Summary | |
|---|---|
| static class | CertificateInfo.Template
Template class for decoding a CertificateInfo. |
| static class | CertificateInfo.Version
An X.509 Certificate version. |
| Field Summary | |
|---|---|
| static CertificateInfo.Version | v1 |
| static CertificateInfo.Version | v2 |
| static CertificateInfo.Version | v3 |
| Constructor Summary | |
|---|---|
| CertificateInfo(CertificateInfo.Version version, INTEGER serialNumber, AlgorithmIdentifier signatureAlgId, Name issuer, Date notBefore, Date notAfter, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo)
Creates a CertificateInfo with the required fields. | |
| Method Summary | |
|---|---|
| void | addExtension(Extension extension) |
| void | encode(OutputStream ostream) |
| void | encode(Tag implicitTag, OutputStream ostream) |
| Extension | getExtension(OBJECT_IDENTIFIER oid)
Linearly searches the extension list for an extension with the given
object identifier. |
| SEQUENCE | getExtensions()
Returns the extensions of this certificate. |
| Name | getIssuer() |
| BIT_STRING | getIssuerUniqueIdentifier()
Should only be called if this field is present. |
| Date | getNotAfter() |
| Date | getNotBefore() |
| INTEGER | getSerialNumber() |
| AlgorithmIdentifier | getSignatureAlgId() |
| Name | getSubject() |
| SubjectPublicKeyInfo | getSubjectPublicKeyInfo() |
| BIT_STRING | getSubjectUniqueIdentifier() |
| Tag | getTag() |
| static CertificateInfo.Template | getTemplate() |
| CertificateInfo.Version | getVersion() |
| boolean | hasExtensions() |
| boolean | hasIssuerUniqueIdentifier() |
| boolean | hasSubjectUniqueIdentifier() |
| boolean | isExtensionPresent(OBJECT_IDENTIFIER oid)
Linearly searches the extension list for an extension with the given
object identifier. |
| void | print(PrintStream ps) |
| void | setExtensions(SEQUENCE extensions) |
| void | setIssuer(Name issuer) |
| void | setIssuerUniqueIdentifier(BIT_STRING issuerUniqueIdentifier) |
| void | setNotAfter(Date notAfter) |
| void | setNotBefore(Date notBefore) |
| void | setSerialNumber(INTEGER serialNumber) |
| void | setSignatureAlgId(AlgorithmIdentifier signatureAlgId) |
| void | setSubject(Name subject) |
| void | setSubjectPublicKeyInfo(SubjectPublicKeyInfo subjectPublicKeyInfo) |
| void | setSubjectPublicKeyInfo(PublicKey pubk)
Extracts the SubjectPublicKeyInfo from the given public key and
stores it in the CertificateInfo.
|
| void | setSubjectUniqueIdentifier(BIT_STRING subjectUniqueIdentifier) |
| void | setVersion(CertificateInfo.Version version) |
Throws: CertificateException If the certificate is not a v3 certificate.
null.Throws: CertificateException If the certificate is not a v3 certificate.
Throws: CertificateException If the certificate is a v1 certificate.
Throws: InvalidBERException If an error occurs decoding the the information extracted from the public key.
Throws: CertificateException If the certificate is a v1 certificate.