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
X509Certificate
getEncoded
in interface X509Certificate
java.security.cert.CertificateEncodingException
public java.lang.String getNickname()
X509Certificate
getNickname
in interface X509Certificate
public java.security.Principal getSubjectDN()
X509Certificate
getSubjectDN
in interface X509Certificate
public java.security.Principal getIssuerDN()
X509Certificate
getIssuerDN
in interface X509Certificate
public java.math.BigInteger getSerialNumber()
X509Certificate
getSerialNumber
in interface X509Certificate
protected byte[] getSerialNumberByteArray()
protected java.lang.String getSubjectDNString()
protected java.lang.String getIssuerDNString()
public java.security.PublicKey getPublicKey()
X509Certificate
getPublicKey
in interface X509Certificate
public int getVersion()
getVersion
in interface X509Certificate
protected 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.