Package org.mozilla.jss.pkcs11
Class PK11InternalCert
java.lang.Object
java.security.cert.Certificate
java.security.cert.X509Certificate
org.mozilla.jss.pkcs11.PK11Cert
org.mozilla.jss.pkcs11.PK11InternalCert
- All Implemented Interfaces:
Serializable
,AutoCloseable
,X509Extension
,InternalCertificate
,X509Certificate
- Direct Known Subclasses:
PK11InternalTokenCert
A certificate that lives in the internal cert database.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.jss.pkcs11.PK11Cert
PK11Cert.StringPrincipal
Nested classes/interfaces inherited from class java.security.cert.Certificate
Certificate.CertificateRep
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class org.mozilla.jss.pkcs11.PK11Cert
certProxy, logger, nickname, tokenProxy
Fields inherited from interface org.mozilla.jss.crypto.InternalCertificate
TRUSTED_CA, TRUSTED_CLIENT_CA, TRUSTED_PEER, USER, VALID_CA, VALID_PEER
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the email (S/MIME) trust flags for this certificate.int
Get the object signing trust flags for this certificate.int
Get the SSL trust flags for this certificate.void
setEmailTrust
(int trust) Set the email (S/MIME) trust flags for this certificate.void
setObjectSigningTrust
(int trust) Set the object signing trust flags for this certificate.void
setSSLTrust
(int trust) Set the SSL trust flags for this certificate.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, getOwningToken, getPublicKey, getSerialNumber, getSerialNumberByteArray, getSigAlgName, getSigAlgOID, getSigAlgParams, getSignature, getSubjectDN, getSubjectDNString, getSubjectUniqueID, getTBSCertificate, getTrust, getUniqueID, getVersion, hashCode, hasUnsupportedCriticalExtension, setTrust, toString, verify, verify
Methods inherited from class java.security.cert.X509Certificate
getExtendedKeyUsage, getIssuerAlternativeNames, getIssuerX500Principal, getSubjectAlternativeNames, getSubjectX500Principal, verify
Methods inherited from class java.security.cert.Certificate
getType, writeReplace
Methods inherited from interface org.mozilla.jss.crypto.X509Certificate
getEncoded, getIssuerDN, getNickname, getPublicKey, getSerialNumber, getSubjectDN, getVersion
-
Field Details
-
SSL
public static final int SSL- See Also:
-
EMAIL
public static final int EMAIL- See Also:
-
OBJECT_SIGNING
public static final int OBJECT_SIGNING- See Also:
-
-
Method Details
-
setSSLTrust
public void setSSLTrust(int trust) Set the SSL trust flags for this certificate.- Specified by:
setSSLTrust
in interfaceInternalCertificate
- Parameters:
trust
- A bitwise OR of the trust flags VALID_PEER, VALID_CA, TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.
-
setEmailTrust
public void setEmailTrust(int trust) Set the email (S/MIME) trust flags for this certificate.- Specified by:
setEmailTrust
in interfaceInternalCertificate
- Parameters:
trust
- A bitwise OR of the trust flags VALID_PEER, VALID_CA, TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.
-
setObjectSigningTrust
public void setObjectSigningTrust(int trust) Set the object signing trust flags for this certificate.- Specified by:
setObjectSigningTrust
in interfaceInternalCertificate
- Parameters:
trust
- A bitwise OR of the trust flags VALID_PEER, VALID_CA, TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.
-
getSSLTrust
public int getSSLTrust()Get the SSL trust flags for this certificate.- Specified by:
getSSLTrust
in interfaceInternalCertificate
- Returns:
- A bitwise OR of the trust flags VALID_PEER, VALID_CA, TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.
-
getEmailTrust
public int getEmailTrust()Get the email (S/MIME) trust flags for this certificate.- Specified by:
getEmailTrust
in interfaceInternalCertificate
- Returns:
- A bitwise OR of the trust flags VALID_PEER, VALID_CA, TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.
-
getObjectSigningTrust
public int getObjectSigningTrust()Get the object signing trust flags for this certificate.- Specified by:
getObjectSigningTrust
in interfaceInternalCertificate
- Returns:
- A bitwise OR of the trust flags VALID_PEER, VALID_CA, TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.
-