Package org.mozilla.jss.nss
Class SECErrors
java.lang.Object
org.mozilla.jss.nss.SECErrors
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Improperly encoded DER message.static final int
Certificate valid start date is in the future.static final int
Expired Certificate.static final int
Certificate was revoked by the issuer.static final int
Certificate was revoked by the OCSP responder.static final int
Certificate was marked as untrusted.static final int
Certificate was signed by an untrusted issuer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
private static int
private static int
private static int
private static int
private static int
private static int
-
Field Details
-
BAD_DER
public static final int BAD_DERImproperly encoded DER message. See also: SEC_ERROR_BAD_DER in /usr/include/nss3/secerr.h -
EXPIRED_CERTIFICATE
public static final int EXPIRED_CERTIFICATEExpired Certificate. See also: SEC_ERROR_EXPIRED_CERTIFICATE in /usr/include/nss3/secerr.h -
CERT_NOT_VALID
public static final int CERT_NOT_VALIDCertificate 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_OCSPCertificate 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_CERTIFICATECertificate was revoked by the issuer. See also: SEC_ERROR_REVOKED_CERTIFICATE in /usr/include/nss3/secerr.h -
UNTRUSTED_ISSUER
public static final int UNTRUSTED_ISSUERCertificate 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_CERTCertificate 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()
-