Package org.mozilla.jss.pkcs11
Class PK11TokenCert
- java.lang.Object
-
- java.security.cert.Certificate
-
- java.security.cert.X509Certificate
-
- org.mozilla.jss.pkcs11.PK11Cert
-
- org.mozilla.jss.pkcs11.PK11TokenCert
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.cert.X509Extension
,TokenCertificate
,X509Certificate
public final class PK11TokenCert extends PK11Cert implements TokenCertificate
A user certificate that lives on a PKCS #11 token.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mozilla.jss.pkcs11.PK11Cert
PK11Cert.StringPrincipal
-
-
Field Summary
-
Fields inherited from class org.mozilla.jss.pkcs11.PK11Cert
certProxy, logger, nickname, tokenProxy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CryptoToken
getOwningToken()
Returns the CryptoToken that owns this certificate.byte[]
getUniqueID()
Returns the unique ID of this key.-
Methods inherited from class org.mozilla.jss.pkcs11.PK11Cert
checkValidity, checkValidity, getBasicConstraints, getCriticalExtensionOIDs, getEncoded, getExtensionValue, getIssuerDN, getIssuerDNString, getIssuerUniqueID, getKeyUsage, getNickname, getNonCriticalExtensionOIDs, getNotAfter, getNotBefore, getPublicKey, getSerialNumber, getSerialNumberByteArray, getSigAlgName, getSigAlgOID, getSigAlgParams, getSignature, getSubjectDN, getSubjectDNString, getSubjectUniqueID, getTBSCertificate, getTrust, getVersion, hasUnsupportedCriticalExtension, setTrust, toString, verify, verify
-
Methods inherited from class java.security.cert.X509Certificate
getExtendedKeyUsage, getIssuerAlternativeNames, getIssuerX500Principal, getSubjectAlternativeNames, getSubjectX500Principal, verify
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mozilla.jss.crypto.X509Certificate
getEncoded, getIssuerDN, getNickname, getPublicKey, getSerialNumber, getSubjectDN, getVersion
-
-
-
-
Method Detail
-
getUniqueID
public byte[] getUniqueID()
Description copied from interface:TokenCertificate
Returns the unique ID of this key. Unique IDs can be used to match certificates to keys.- Specified by:
getUniqueID
in interfaceTokenCertificate
- Overrides:
getUniqueID
in classPK11Cert
- See Also:
PrivateKey.getUniqueID()
-
getOwningToken
public CryptoToken getOwningToken()
Description copied from interface:TokenCertificate
Returns the CryptoToken that owns this certificate. Cryptographic operations with this key may only be performed on the token that owns the key.- Specified by:
getOwningToken
in interfaceTokenCertificate
- Overrides:
getOwningToken
in classPK11Cert
-
-