org.mozilla.jss.ssl
Class SSLCertificateApprovalCallback.ValidityStatus
java.lang.Object
org.mozilla.jss.ssl.SSLCertificateApprovalCallback.ValidityStatus
- Enclosing interface:
- SSLCertificateApprovalCallback
public static class SSLCertificateApprovalCallback.ValidityStatus
- extends java.lang.Object
This class holds details about the errors for each cert in
the chain that the server presented
To use this class, getReasons(), then iterate over the enumeration
|
Method Summary |
void |
addReason(int newReason,
PK11Cert cert,
int depth)
add a new failure reason to this enumeration. |
java.util.Enumeration |
getReasons()
returns an enumeration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXPIRED_CERTIFICATE
public static final int EXPIRED_CERTIFICATE
- See Also:
- Constant Field Values
REVOKED_CERTIFICATE
public static final int REVOKED_CERTIFICATE
- See Also:
- Constant Field Values
INADEQUATE_KEY_USAGE
public static final int INADEQUATE_KEY_USAGE
- See Also:
- Constant Field Values
INADEQUATE_CERT_TYPE
public static final int INADEQUATE_CERT_TYPE
- See Also:
- Constant Field Values
UNTRUSTED_CERT
public static final int UNTRUSTED_CERT
- See Also:
- Constant Field Values
CERT_STATUS_SERVER_ERROR
public static final int CERT_STATUS_SERVER_ERROR
- See Also:
- Constant Field Values
UNKNOWN_ISSUER
public static final int UNKNOWN_ISSUER
- See Also:
- Constant Field Values
UNTRUSTED_ISSUER
public static final int UNTRUSTED_ISSUER
- See Also:
- Constant Field Values
CERT_NOT_IN_NAME_SPACE
public static final int CERT_NOT_IN_NAME_SPACE
- See Also:
- Constant Field Values
CA_CERT_INVALID
public static final int CA_CERT_INVALID
- See Also:
- Constant Field Values
PATH_LEN_CONSTRAINT_INVALID
public static final int PATH_LEN_CONSTRAINT_INVALID
- See Also:
- Constant Field Values
BAD_KEY
public static final int BAD_KEY
- See Also:
- Constant Field Values
BAD_SIGNATURE
public static final int BAD_SIGNATURE
- See Also:
- Constant Field Values
EXPIRED_ISSUER_CERTIFICATE
public static final int EXPIRED_ISSUER_CERTIFICATE
- See Also:
- Constant Field Values
INVALID_TIME
public static final int INVALID_TIME
- See Also:
- Constant Field Values
UNKNOWN_SIGNER
public static final int UNKNOWN_SIGNER
- See Also:
- Constant Field Values
SEC_ERROR_CRL_EXPIRED
public static final int SEC_ERROR_CRL_EXPIRED
- See Also:
- Constant Field Values
SEC_ERROR_CRL_BAD_SIGNATURE
public static final int SEC_ERROR_CRL_BAD_SIGNATURE
- See Also:
- Constant Field Values
SEC_ERROR_CRL_INVALID
public static final int SEC_ERROR_CRL_INVALID
- See Also:
- Constant Field Values
CERT_BAD_ACCESS_LOCATION
public static final int CERT_BAD_ACCESS_LOCATION
- See Also:
- Constant Field Values
OCSP_UNKNOWN_RESPONSE_TYPE
public static final int OCSP_UNKNOWN_RESPONSE_TYPE
- See Also:
- Constant Field Values
OCSP_BAD_HTTP_RESPONSE
public static final int OCSP_BAD_HTTP_RESPONSE
- See Also:
- Constant Field Values
OCSP_MALFORMED_REQUEST
public static final int OCSP_MALFORMED_REQUEST
- See Also:
- Constant Field Values
OCSP_SERVER_ERROR
public static final int OCSP_SERVER_ERROR
- See Also:
- Constant Field Values
OCSP_TRY_SERVER_LATER
public static final int OCSP_TRY_SERVER_LATER
- See Also:
- Constant Field Values
OCSP_REQUEST_NEEDS_SIG
public static final int OCSP_REQUEST_NEEDS_SIG
- See Also:
- Constant Field Values
OCSP_UNAUTHORIZED_REQUEST
public static final int OCSP_UNAUTHORIZED_REQUEST
- See Also:
- Constant Field Values
OCSP_UNKNOWN_RESPONSE_STATUS
public static final int OCSP_UNKNOWN_RESPONSE_STATUS
- See Also:
- Constant Field Values
OCSP_UNKNOWN_CERT
public static final int OCSP_UNKNOWN_CERT
- See Also:
- Constant Field Values
OCSP_NOT_ENABLED
public static final int OCSP_NOT_ENABLED
- See Also:
- Constant Field Values
OCSP_NO_DEFAULT_RESPONDER
public static final int OCSP_NO_DEFAULT_RESPONDER
- See Also:
- Constant Field Values
OCSP_MALFORMED_RESPONSE
public static final int OCSP_MALFORMED_RESPONSE
- See Also:
- Constant Field Values
OCSP_UNAUTHORIZED_RESPONSE
public static final int OCSP_UNAUTHORIZED_RESPONSE
- See Also:
- Constant Field Values
OCSP_FUTURE_RESPONSE
public static final int OCSP_FUTURE_RESPONSE
- See Also:
- Constant Field Values
OCSP_OLD_RESPONSE
public static final int OCSP_OLD_RESPONSE
- See Also:
- Constant Field Values
BAD_CERT_DOMAIN
public static final int BAD_CERT_DOMAIN
- this indicates common-name mismatch
- See Also:
- Constant Field Values
SSLCertificateApprovalCallback.ValidityStatus
public SSLCertificateApprovalCallback.ValidityStatus()
addReason
public void addReason(int newReason,
PK11Cert cert,
int depth)
- add a new failure reason to this enumeration. This is called from the
native code callback when it does a verify on the cert chain
- Parameters:
newReason - sslerr.h error code - see constants defined above;cert - a reference to the cert - so you can see the subject name, etcdepth - the index of this cert in the chain. 0 is the server cert.
getReasons
public java.util.Enumeration getReasons()
- returns an enumeration. The elements in the enumeration are
all of type 'ValidityItem'