You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.crypto
Interface TokenCertificate

All Superinterfaces:
X509Certificate
All Known Implementing Classes:
PK11InternalTokenCert, PK11TokenCert

public interface TokenCertificate
extends X509Certificate

An X509 Certificate that lives on a PKCS #11 token. Many of the X509Certificates returned by JSS calls are actually TokenCertificates. To find out if an X509Certificate is a TokenCertificate, use instanceof.


Method Summary
 CryptoToken getOwningToken()
          Returns the CryptoToken that owns this certificate.
 byte[] getUniqueID()
          Deprecated. This ID is based on an implementation that might change. If this functionality is required, it should be provided in another way, such as a function that directly matches a cert and key.
 
Methods inherited from interface org.mozilla.jss.crypto.X509Certificate
getEncoded, getIssuerDN, getNickname, getPublicKey, getSerialNumber, getSubjectDN, getVersion
 

Method Detail

getUniqueID

byte[] getUniqueID()
Deprecated. This ID is based on an implementation that might change. If this functionality is required, it should be provided in another way, such as a function that directly matches a cert and key.

Returns the unique ID of this key. Unique IDs can be used to match certificates to keys.

See Also:
PrivateKey.getUniqueID()

getOwningToken

CryptoToken getOwningToken()
Returns the CryptoToken that owns this certificate. Cryptographic operations with this key may only be performed on the token that owns the key.