org.mozilla.jss.crypto

Interface InternalCertificate

public interface InternalCertificate extends X509Certificate

Certificates residing in the internal database. Their trust flags can be viewed and modified. Other types of certificates do not have trust flags.
Field Summary
static intTRUSTED_CA
static intTRUSTED_CLIENT_CA
static intTRUSTED_PEER
static intUSER
static intVALID_CA
static intVALID_PEER
Method Summary
abstract intgetEmailTrust()
Get the email (S/MIME) trust flags for this certificate.
abstract intgetObjectSigningTrust()
Get the object signing trust flags for this certificate.
abstract intgetSSLTrust()
Get the SSL trust flags for this certificate.
abstract voidsetEmailTrust(int trust)
Set the email (S/MIME) trust flags for this certificate.
abstract voidsetObjectSigningTrust(int trust)
Set the object signing trust flags for this certificate.
abstract voidsetSSLTrust(int trust)
Set the SSL trust flags for this certificate.

Field Detail

TRUSTED_CA

public static final int TRUSTED_CA

TRUSTED_CLIENT_CA

public static final int TRUSTED_CLIENT_CA

TRUSTED_PEER

public static final int TRUSTED_PEER

USER

public static final int USER

VALID_CA

public static final int VALID_CA

VALID_PEER

public static final int VALID_PEER

Method Detail

getEmailTrust

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.