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