org.mozilla.jss.pkcs11

Class PK11Cert

public class PK11Cert extends Object implements X509Certificate

Nested Class Summary
protected static classPK11Cert.StringPrincipal
A class that implements Principal with a String.
Field Summary
protected CertProxycertProxy
protected Stringnickname
protected TokenProxytokenProxy
Method Summary
byte[]getEncoded()
PrincipalgetIssuerDN()
protected StringgetIssuerDNString()
StringgetNickname()
protected CryptoTokengetOwningToken()
PublicKeygetPublicKey()
BigIntegergetSerialNumber()
protected byte[]getSerialNumberByteArray()
PrincipalgetSubjectDN()
protected StringgetSubjectDNString()
protected intgetTrust(int type)
Gets the trust flags for this cert.
protected byte[]getUniqueID()
intgetVersion()
protected voidsetTrust(int type, int trust)
Sets the trust flags for this cert.

Field Detail

certProxy

protected CertProxy certProxy

nickname

protected String nickname

tokenProxy

protected TokenProxy tokenProxy

Method Detail

getEncoded

public byte[] getEncoded()

getIssuerDN

public Principal getIssuerDN()

getIssuerDNString

protected String getIssuerDNString()

getNickname

public String getNickname()

getOwningToken

protected CryptoToken getOwningToken()

getPublicKey

public PublicKey getPublicKey()

getSerialNumber

public BigInteger getSerialNumber()

getSerialNumberByteArray

protected byte[] getSerialNumberByteArray()

getSubjectDN

public Principal getSubjectDN()

getSubjectDNString

protected String getSubjectDNString()

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.

getUniqueID

protected byte[] getUniqueID()

getVersion

public int getVersion()

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.