public class PK11Cert extends java.lang.Object implements X509Certificate
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PK11Cert.StringPrincipal
A class that implements Principal with a String.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.mozilla.jss.pkcs11.CertProxy |
certProxy |
protected java.lang.String |
nickname |
protected TokenProxy |
tokenProxy |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected java.lang.String |
getIssuerDNString() |
java.lang.String |
getNickname()
Returns the possibly-null nickname of this certificate.
|
protected CryptoToken |
getOwningToken() |
java.security.PublicKey |
getPublicKey()
Extracts the Public Key from this certificate.
|
java.math.BigInteger |
getSerialNumber()
Returns the serial number of this certificate.
|
protected byte[] |
getSerialNumberByteArray() |
java.security.Principal |
getSubjectDN()
Returns the RFC 1485 ASCII encoding of the Subject Name.
|
protected java.lang.String |
getSubjectDNString() |
protected int |
getTrust(int type)
Gets the trust flags for this cert.
|
protected byte[] |
getUniqueID() |
int |
getVersion() |
protected void |
setTrust(int type,
int trust)
Sets the trust flags for this cert.
|
protected org.mozilla.jss.pkcs11.CertProxy certProxy
protected TokenProxy tokenProxy
protected java.lang.String nickname
public byte[] getEncoded()
throws java.security.cert.CertificateEncodingException
X509CertificategetEncoded in interface X509Certificatejava.security.cert.CertificateEncodingExceptionpublic java.lang.String getNickname()
X509CertificategetNickname in interface X509Certificatepublic java.security.Principal getSubjectDN()
X509CertificategetSubjectDN in interface X509Certificatepublic java.security.Principal getIssuerDN()
X509CertificategetIssuerDN in interface X509Certificatepublic java.math.BigInteger getSerialNumber()
X509CertificategetSerialNumber in interface X509Certificateprotected byte[] getSerialNumberByteArray()
protected java.lang.String getSubjectDNString()
protected java.lang.String getIssuerDNString()
public java.security.PublicKey getPublicKey()
X509CertificategetPublicKey in interface X509Certificatepublic int getVersion()
getVersion in interface X509Certificateprotected byte[] getUniqueID()
protected CryptoToken getOwningToken()
protected void setTrust(int type,
int trust)
type - SSL, EMAIL, or OBJECT_SIGNING.trust - The trust flags for this type of trust.protected int getTrust(int type)
type - SSL, EMAIL, or OBJECT_SIGNING.