Package org.mozilla.jss.pkcs11
Class PK11InternalCert
- java.lang.Object
-
- org.mozilla.jss.pkcs11.PK11Cert
-
- org.mozilla.jss.pkcs11.PK11InternalCert
-
- All Implemented Interfaces:
InternalCertificate,X509Certificate
- Direct Known Subclasses:
PK11InternalTokenCert
public class PK11InternalCert extends PK11Cert implements InternalCertificate
A certificate that lives in the internal cert database.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mozilla.jss.pkcs11.PK11Cert
PK11Cert.StringPrincipal
-
-
Field Summary
Fields Modifier and Type Field Description static intEMAILstatic intOBJECT_SIGNINGstatic intSSL-
Fields inherited from class org.mozilla.jss.pkcs11.PK11Cert
certProxy, 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEmailTrust()Get the email (S/MIME) trust flags for this certificate.intgetObjectSigningTrust()Get the object signing trust flags for this certificate.intgetSSLTrust()Get the SSL trust flags for this certificate.voidsetEmailTrust(int trust)Set the email (S/MIME) trust flags for this certificate.voidsetObjectSigningTrust(int trust)Set the object signing trust flags for this certificate.voidsetSSLTrust(int trust)Set the SSL trust flags for this certificate.-
Methods inherited from class org.mozilla.jss.pkcs11.PK11Cert
getEncoded, getIssuerDN, getIssuerDNString, getNickname, getOwningToken, getPublicKey, getSerialNumber, getSerialNumberByteArray, getSubjectDN, getSubjectDNString, getTrust, getUniqueID, getVersion, setTrust
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mozilla.jss.crypto.X509Certificate
getEncoded, getIssuerDN, getNickname, getPublicKey, getSerialNumber, getSubjectDN, getVersion
-
-
-
-
Field Detail
-
SSL
public static final int SSL
- See Also:
- Constant Field Values
-
EMAIL
public static final int EMAIL
- See Also:
- Constant Field Values
-
OBJECT_SIGNING
public static final int OBJECT_SIGNING
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSSLTrust
public void setSSLTrust(int trust)
Set the SSL trust flags for this certificate.- Specified by:
setSSLTrustin 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:
setEmailTrustin 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:
setObjectSigningTrustin 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:
getSSLTrustin 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:
getEmailTrustin 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:
getObjectSigningTrustin interfaceInternalCertificate- Returns:
- A bitwise OR of the trust flags VALID_PEER, VALID_CA, TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.
-
-