org.mozilla.jss.pkcs11

Class PK11InternalCert

public class PK11InternalCert extends PK11Cert implements InternalCertificate

A certificate that lives in the internal cert database.
Field Summary
static intEMAIL
static intOBJECT_SIGNING
static intSSL
Method Summary
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.

Field Detail

EMAIL

public static final int EMAIL

OBJECT_SIGNING

public static final int OBJECT_SIGNING

SSL

public static final int SSL

Method Detail

getEmailTrust

public int getEmailTrust()
Get the email (S/MIME) trust flags for this certificate.

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.

Returns: 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.

Returns: 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.

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.

Parameters: trust A bitwise OR of the trust flags VALID_PEER, VALID_CA, TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.

setSSLTrust

public void setSSLTrust(int trust)
Set the SSL trust flags for this certificate.

Parameters: trust A bitwise OR of the trust flags VALID_PEER, VALID_CA, TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.