org.mozilla.jss.crypto
Interface X509Certificate
- InternalCertificate, TokenCertificate
- PK11Cert, PK11InternalCert, PK11InternalTokenCert, PK11TokenCert
public interface X509Certificate
Certificates handled by JSS. All certificates handled by JSS are
of this type.
byte[] | getEncoded() - Returns the DER encoding of this certificate.
|
abstract Principal | getIssuerDN() - Returns the RFC 1485 ASCII encoding of the issuer's Subject Name.
|
abstract String | getNickname() - Returns the possibly-null nickname of this certificate.
|
abstract java.security.PublicKey | getPublicKey() - Extracts the Public Key from this certificate.
|
abstract BigInteger | getSerialNumber() - Returns the serial number of this certificate.
|
abstract Principal | getSubjectDN() - Returns the RFC 1485 ASCII encoding of the Subject Name.
|
abstract int | getVersion()
|
getEncoded
public byte[] getEncoded()
throws java.security.cert.CertificateEncodingException
Returns the DER encoding of this certificate.
getIssuerDN
public abstract Principal getIssuerDN()
Returns the RFC 1485 ASCII encoding of the issuer's Subject Name.
getNickname
public abstract String getNickname()
Returns the possibly-null nickname of this certificate.
getPublicKey
public abstract java.security.PublicKey getPublicKey()
Extracts the Public Key from this certificate.
getSerialNumber
public abstract BigInteger getSerialNumber()
Returns the serial number of this certificate.
getSubjectDN
public abstract Principal getSubjectDN()
Returns the RFC 1485 ASCII encoding of the Subject Name.
getVersion
public abstract int getVersion()
- the version number of this X.509 certificate.
0 means v1, 1 means v2, 2 means v3.