org.mozilla.jss.crypto
Interface InternalCertificate
- X509Certificate
- PK11InternalCert, PK11InternalTokenCert
public interface InternalCertificate
Certificates residing in the internal database. Their trust flags
can be viewed and modified. Other types of certificates do not
have trust flags.
int | getEmailTrust() - Get the email (S/MIME) trust flags for this certificate.
|
int | getObjectSigningTrust() - Get the object signing trust flags for this certificate.
|
int | getSSLTrust() - 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.
|
TRUSTED_CA
public static final int TRUSTED_CA
- 16
TRUSTED_CLIENT_CA
public static final int TRUSTED_CLIENT_CA
- 128
TRUSTED_PEER
public static final int TRUSTED_PEER
- 2
USER
public static final int USER
- 64
VALID_CA
public static final int VALID_CA
- 8
VALID_PEER
public static final int VALID_PEER
- 1
getEmailTrust
public int getEmailTrust()
Get the email (S/MIME) trust flags for this certificate.
- 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.
- 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.
- 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.
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.
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.
trust
- A bitwise OR of the trust flags VALID_PEER, VALID_CA,
TRUSTED_CA, USER, and TRUSTED_CLIENT_CA.