Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getEncoded()
java.security.Principal
getIssuerDN()
java.lang.String
getNickname()
java.security.PublicKey
getPublicKey()
java.math.BigInteger
getSerialNumber()
java.security.Principal
getSubjectDN()
int
getVersion()
-
-
-
Method Detail
-
getEncoded
byte[] getEncoded() throws java.security.cert.CertificateEncodingException
- Returns:
- The DER encoding of this certificate.
- Throws:
java.security.cert.CertificateEncodingException
- If an error occurred.
-
getNickname
java.lang.String getNickname()
- Returns:
- The nickname of this certificate (could be null).
-
getPublicKey
java.security.PublicKey getPublicKey()
- Returns:
- 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.
-
-