gnu.crypto.pki
public class X509CertificateImpl extends X509Certificate implements Serializable, GnuPKIExtension
Field Summary | |
---|---|
protected OID | algId |
protected byte[] | algVal |
protected byte[] | encoded |
protected Map | extensions |
protected X500Name | issuer |
protected BitString | issuerUniqueId |
protected static OID | ID_DSA |
protected static OID | ID_DSA_WITH_SHA1 |
protected static OID | ID_ECDSA_WITH_SHA1 |
protected static OID | ID_RSA |
protected static OID | ID_RSA_WITH_MD2 |
protected static OID | ID_RSA_WITH_MD5 |
protected static OID | ID_RSA_WITH_SHA1 |
protected Date | notAfter |
protected Date | notBefore |
protected BigInteger | serialNo |
protected OID | sigAlgId |
protected byte[] | sigAlgVal |
protected byte[] | signature |
protected X500Name | subject |
protected PublicKey | subjectKey |
protected BitString | subjectUniqueId |
protected byte[] | tbsCertBytes |
protected int | version |
Constructor Summary | |
---|---|
X509CertificateImpl(InputStream encoded)
Create a new X.509 certificate from the encoded data. | |
protected | X509CertificateImpl() |
Method Summary | |
---|---|
void | checkValidity() |
void | checkValidity(Date date) |
boolean | equals(Object other) |
int | getBasicConstraints() |
Set | getCriticalExtensionOIDs() |
byte[] | getEncoded() |
List | getExtendedKeyUsage() |
Extension | getExtension(OID oid) |
Collection | getExtensions() |
byte[] | getExtensionValue(String oid) |
Collection | getIssuerAlternativeNames() |
Principal | getIssuerDN() |
boolean[] | getIssuerUniqueID() |
X500Principal | getIssuerX500Principal() |
boolean[] | getKeyUsage() |
Set | getNonCriticalExtensionOIDs() |
Date | getNotAfter() |
Date | getNotBefore() |
PublicKey | getPublicKey() |
BigInteger | getSerialNumber() |
String | getSigAlgName() |
String | getSigAlgOID() |
byte[] | getSigAlgParams() |
byte[] | getSignature() |
Collection | getSubjectAlternativeNames() |
Principal | getSubjectDN() |
boolean[] | getSubjectUniqueID() |
X500Principal | getSubjectX500Principal() |
byte[] | getTBSCertificate() |
int | getVersion() |
boolean | hasUnsupportedCriticalExtension() |
String | toString() |
void | verify(PublicKey key) |
void | verify(PublicKey key, String provider) |
Parameters: encoded The encoded certificate data.
Throws: IOException If the certificate cannot be read, possibly from a formatting error. CertificateException If the data read is not an X.509 certificate.