org.mozilla.jss.crypto

Interface X509Certificate

public interface X509Certificate

Certificates handled by JSS. All certificates handled by JSS are of this type.
Method Summary
byte[]getEncoded()
Returns the DER encoding of this certificate.
abstract PrincipalgetIssuerDN()
Returns the RFC 1485 ASCII encoding of the issuer's Subject Name.
abstract StringgetNickname()
Returns the possibly-null nickname of this certificate.
abstract PublicKeygetPublicKey()
Extracts the Public Key from this certificate.
abstract BigIntegergetSerialNumber()
Returns the serial number of this certificate.
abstract PrincipalgetSubjectDN()
Returns the RFC 1485 ASCII encoding of the Subject Name.
abstract intgetVersion()

Method Detail

getEncoded

public byte[] getEncoded()
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 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()

Returns: the version number of this X.509 certificate. 0 means v1, 1 means v2, 2 means v3.