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