org.mozilla.jss.pkcs11
Class PK11Cert
java.lang.Object
|
+--org.mozilla.jss.pkcs11.PK11Cert
- Direct Known Subclasses:
- PK11InternalCert, PK11TokenCert
- public class PK11Cert
- extends java.lang.Object
- implements X509Certificate
Constructor Summary |
(package private) |
PK11Cert(byte[] pointer)
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
certProxy
protected CertProxy certProxy
PK11Cert
PK11Cert(byte[] pointer)
getEncoded
public byte[] getEncoded()
throws java.security.cert.CertificateEncodingException
- Specified by:
- getEncoded in interface X509Certificate
getNickname
public java.lang.String getNickname()
- Specified by:
- getNickname in interface X509Certificate
getSubjectDN
public java.security.Principal getSubjectDN()
- Specified by:
- getSubjectDN in interface X509Certificate
getIssuerDN
public java.security.Principal getIssuerDN()
- Specified by:
- getIssuerDN in interface X509Certificate
getSerialNumber
public java.math.BigInteger getSerialNumber()
- Specified by:
- getSerialNumber in interface X509Certificate
getSerialNumberByteArray
protected byte[] getSerialNumberByteArray()
getSubjectDNString
protected java.lang.String getSubjectDNString()
getIssuerDNString
protected java.lang.String getIssuerDNString()
getPublicKey
public java.security.PublicKey getPublicKey()
- Specified by:
- getPublicKey in interface X509Certificate
getVersion
public int getVersion()
- Specified by:
- getVersion in interface X509Certificate
getUniqueID
protected byte[] getUniqueID()
getOwningToken
protected CryptoToken getOwningToken()
setTrust
protected void setTrust(int type,
int trust)
- Sets the trust flags for this cert.
- Parameters:
type
- SSL, EMAIL, or OBJECT_SIGNING.trust
- The trust flags for this type of trust.
getTrust
protected int getTrust(int type)
- Gets the trust flags for this cert.
- Parameters:
type
- SSL, EMAIL, or OBJECT_SIGNING.- Returns:
- The trust flags for this type of trust.