JSS 3.1.2

org.mozilla.jss.crypto
Interface X509Certificate

All Known Subinterfaces:
InternalCertificate, TokenCertificate
All Known Implementing Classes:
PK11Cert

public interface X509Certificate

Certificates handled by JSS. All certificates handled by JSS are of this type, which is a subtype of java.security.cert.X509Certificate.


Method Summary
 byte[] getEncoded()
          Returns the DER encoding of this certificate.
 java.security.Principal getIssuerDN()
          Returns the RFC 1485 ASCII encoding of the issuer's Subject Name.
 java.lang.String getNickname()
          Returns the possibly-null nickname of this certificate.
 java.security.PublicKey getPublicKey()
          Extracts the Public Key from this certificate.
 java.math.BigInteger getSerialNumber()
          Returns the serial number of this certificate.
 java.security.Principal getSubjectDN()
          Returns the RFC 1485 ASCII encoding of the Subject Name.
 int getVersion()
          Returns the version number of this X.509 certificate.
 

Method Detail

getEncoded

public byte[] getEncoded()
                  throws java.security.cert.CertificateEncodingException
Returns the DER encoding of this certificate.

getNickname

public java.lang.String getNickname()
Returns the possibly-null nickname of this certificate.

getPublicKey

public java.security.PublicKey getPublicKey()
Extracts the Public Key from this certificate.

getSubjectDN

public java.security.Principal getSubjectDN()
Returns the RFC 1485 ASCII encoding of the Subject Name.

getIssuerDN

public java.security.Principal getIssuerDN()
Returns the RFC 1485 ASCII encoding of the issuer's Subject Name.

getSerialNumber

public java.math.BigInteger getSerialNumber()
Returns the serial number of this certificate.

getVersion

public int getVersion()
Returns the version number of this X.509 certificate. 0 means v1, 1 means v2, 2 means v3.

JSS 3.1.2