Interface InternalCertificate

All Superinterfaces:
X509Certificate
All Known Implementing Classes:
PK11Cert, PK11InternalCert, PK11InternalTokenCert

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
    Use PK11Cert.TRUSTED_CA instead.
    static final int
    Deprecated.
    Use PK11Cert.TRUSTED_CLIENT_CA instead.
    static final int
    Deprecated.
    Use PK11Cert.TRUSTED_PEER instead.
    static final int
    Deprecated.
    Use PK11Cert.USER instead.
    static final int
    Deprecated.
    Use PK11Cert.VALID_CA instead.
    static final int
    Deprecated.
    Use PK11Cert.VALID_PEER instead.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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
    Set the object signing trust flags for this certificate.
    void
    setSSLTrust(int trust)
    Set the SSL trust flags for this certificate.

    Methods inherited from interface org.mozilla.jss.crypto.X509Certificate

    getEncoded, getIssuerDN, getNickname, getPublicKey, getSerialNumber, getSubjectDN, getVersion
  • Field Details

  • Method Details

    • setSSLTrust

      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.
    • setEmailTrust

      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

      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.
    • getSSLTrust

      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.
    • getEmailTrust

      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

      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.