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:
Serializable,AutoCloseable,X509Extension,TokenCertificate,X509Certificate
A user certificate that lives on a PKCS #11 token.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.jss.pkcs11.PK11Cert
PK11Cert.StringPrincipalNested classes/interfaces inherited from class java.security.cert.Certificate
Certificate.CertificateRep -
Field Summary
Fields inherited from class org.mozilla.jss.pkcs11.PK11Cert
certProxy, logger, nickname, tokenProxy -
Method Summary
Modifier and TypeMethodDescriptionReturns the CryptoToken that owns this certificate.byte[]Returns the unique ID of this key.Methods inherited from class org.mozilla.jss.pkcs11.PK11Cert
checkValidity, checkValidity, close, equals, finalize, 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, hashCode, hasUnsupportedCriticalExtension, setTrust, toString, verify, verifyMethods inherited from class java.security.cert.X509Certificate
getExtendedKeyUsage, getIssuerAlternativeNames, getIssuerX500Principal, getSubjectAlternativeNames, getSubjectX500Principal, verifyMethods inherited from class java.security.cert.Certificate
getType, writeReplaceMethods inherited from interface org.mozilla.jss.crypto.X509Certificate
getEncoded, getIssuerDN, getNickname, getPublicKey, getSerialNumber, getSubjectDN, getVersion
-
Method Details
-
getUniqueID
public byte[] getUniqueID()Description copied from interface:TokenCertificateReturns the unique ID of this key. Unique IDs can be used to match certificates to keys.- Specified by:
getUniqueIDin interfaceTokenCertificate- Overrides:
getUniqueIDin classPK11Cert- See Also:
-
getOwningToken
Description copied from interface:TokenCertificateReturns the CryptoToken that owns this certificate. Cryptographic operations with this key may only be performed on the token that owns the key.- Specified by:
getOwningTokenin interfaceTokenCertificate- Overrides:
getOwningTokenin classPK11Cert
-