You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.crypto
Interface X509Certificate

All Known Subinterfaces:
InternalCertificate, TokenCertificate
All Known Implementing Classes:
PK11Cert, PK11InternalCert, PK11InternalTokenCert, PK11TokenCert

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.
 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()
           
 

Method Detail

getEncoded

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

Throws:
java.security.cert.CertificateEncodingException

getNickname

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


getPublicKey

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


getSubjectDN

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


getIssuerDN

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


getSerialNumber

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


getVersion

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