Class SECErrors

java.lang.Object
org.mozilla.jss.nss.SECErrors

public class SECErrors extends Object
This class provides access to useful NSS errors, getting their values from a JNI call. Note that it *isn't* an enum as the NSS wrappers return int. This saves us from having to wrap every NSS error in a class instance only to later unwrap it to make any useful calls.
  • Field Details

    • BAD_DER

      public static final int BAD_DER
      Improperly encoded DER message. See also: SEC_ERROR_BAD_DER in /usr/include/nss3/secerr.h
    • EXPIRED_CERTIFICATE

      public static final int EXPIRED_CERTIFICATE
      Expired Certificate. See also: SEC_ERROR_EXPIRED_CERTIFICATE in /usr/include/nss3/secerr.h
    • CERT_NOT_VALID

      public static final int CERT_NOT_VALID
      Certificate valid start date is in the future. See also: SEC_ERROR_CERT_NOT_VALID in /usr/include/nss3/secerr.h
    • REVOKED_CERTIFICATE_OCSP

      public static final int REVOKED_CERTIFICATE_OCSP
      Certificate was revoked by the OCSP responder. See also: SEC_ERROR_REVOKED_CERTIFICATE_OCSP in /usr/include/nss3/secerr.h
    • REVOKED_CERTIFICATE

      public static final int REVOKED_CERTIFICATE
      Certificate was revoked by the issuer. See also: SEC_ERROR_REVOKED_CERTIFICATE in /usr/include/nss3/secerr.h
    • UNTRUSTED_ISSUER

      public static final int UNTRUSTED_ISSUER
      Certificate was signed by an untrusted issuer. See also: SEC_ERROR_UNTRUSTED_ISSUER in /usr/include/nss3/secerr.h
    • UNTRUSTED_CERT

      public static final int UNTRUSTED_CERT
      Certificate was marked as untrusted. See also: SEC_ERROR_UNTRUSTED_CERT in /usr/include/nss3/secerr.h
  • Constructor Details

    • SECErrors

      public SECErrors()
  • Method Details

    • getBadDER

      private static int getBadDER()
    • getExpiredCertificate

      private static int getExpiredCertificate()
    • getCertNotValid

      private static int getCertNotValid()
    • getRevokedCertificateOCSP

      private static int getRevokedCertificateOCSP()
    • getRevokedCertificate

      private static int getRevokedCertificate()
    • getUntrustedIssuer

      private static int getUntrustedIssuer()
    • getUntrustedCert

      private static int getUntrustedCert()