SSL_CTX_set_cert_verify_callback.
Important Note
Implementations of this interface should be static as it is stored as a global reference via JNI. This means if you use an inner / anonymous class to implement this and also depend on the finalizer of the class to free up the SSLContext the finalizer will never run as the object is never GC, due the hard reference to the enclosing class. This will most likely result in a memory leak.
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public abstract int | Returns: verifiedtrue if verified successful, false otherwisethe SSL instance ssl, byte[][] the x509, String X509 certificate chainthe auth algorithm authAlgorithm)Returns |
| ERRORS | back to summary |
|---|---|
| private static final Set<Integer> ERRORS | |
| X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH | back to summary |
|---|---|
| public static final int X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH | |
| X509_V_ERR_AKID_SKID_MISMATCH | back to summary |
|---|---|
| public static final int X509_V_ERR_AKID_SKID_MISMATCH | |
| X509_V_ERR_APPLICATION_VERIFICATION | back to summary |
|---|---|
| public static final int X509_V_ERR_APPLICATION_VERIFICATION | |
| X509_V_ERR_CERT_CHAIN_TOO_LONG | back to summary |
|---|---|
| public static final int X509_V_ERR_CERT_CHAIN_TOO_LONG | |
| X509_V_ERR_CERT_HAS_EXPIRED | back to summary |
|---|---|
| public static final int X509_V_ERR_CERT_HAS_EXPIRED | |
| X509_V_ERR_CERT_NOT_YET_VALID | back to summary |
|---|---|
| public static final int X509_V_ERR_CERT_NOT_YET_VALID | |
| X509_V_ERR_CERT_REJECTED | back to summary |
|---|---|
| public static final int X509_V_ERR_CERT_REJECTED | |
| X509_V_ERR_CERT_REVOKED | back to summary |
|---|---|
| public static final int X509_V_ERR_CERT_REVOKED | |
| X509_V_ERR_CERT_SIGNATURE_FAILURE | back to summary |
|---|---|
| public static final int X509_V_ERR_CERT_SIGNATURE_FAILURE | |
| X509_V_ERR_CERT_UNTRUSTED | back to summary |
|---|---|
| public static final int X509_V_ERR_CERT_UNTRUSTED | |
| X509_V_ERR_CRL_HAS_EXPIRED | back to summary |
|---|---|
| public static final int X509_V_ERR_CRL_HAS_EXPIRED | |
| X509_V_ERR_CRL_NOT_YET_VALID | back to summary |
|---|---|
| public static final int X509_V_ERR_CRL_NOT_YET_VALID | |
| X509_V_ERR_CRL_PATH_VALIDATION_ERROR | back to summary |
|---|---|
| public static final int X509_V_ERR_CRL_PATH_VALIDATION_ERROR | |
| X509_V_ERR_CRL_SIGNATURE_FAILURE | back to summary |
|---|---|
| public static final int X509_V_ERR_CRL_SIGNATURE_FAILURE | |
| X509_V_ERR_DANE_NO_MATCH | back to summary |
|---|---|
| public static final int X509_V_ERR_DANE_NO_MATCH | |
| X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT | back to summary |
|---|---|
| public static final int X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT | |
| X509_V_ERR_DIFFERENT_CRL_SCOPE | back to summary |
|---|---|
| public static final int X509_V_ERR_DIFFERENT_CRL_SCOPE | |
| X509_V_ERR_EMAIL_MISMATCH | back to summary |
|---|---|
| public static final int X509_V_ERR_EMAIL_MISMATCH | |
| X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD | back to summary |
|---|---|
| public static final int X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD | |
| X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD | back to summary |
|---|---|
| public static final int X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD | |
| X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD | back to summary |
|---|---|
| public static final int X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD | |
| X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD | back to summary |
|---|---|
| public static final int X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD | |
| X509_V_ERR_EXCLUDED_VIOLATION | back to summary |
|---|---|
| public static final int X509_V_ERR_EXCLUDED_VIOLATION | |
| X509_V_ERR_HOSTNAME_MISMATCH | back to summary |
|---|---|
| public static final int X509_V_ERR_HOSTNAME_MISMATCH | |
| X509_V_ERR_INVALID_CA | back to summary |
|---|---|
| public static final int X509_V_ERR_INVALID_CA | |
| X509_V_ERR_INVALID_EXTENSION | back to summary |
|---|---|
| public static final int X509_V_ERR_INVALID_EXTENSION | |
| X509_V_ERR_INVALID_NON_CA | back to summary |
|---|---|
| public static final int X509_V_ERR_INVALID_NON_CA | |
| X509_V_ERR_INVALID_POLICY_EXTENSION | back to summary |
|---|---|
| public static final int X509_V_ERR_INVALID_POLICY_EXTENSION | |
| X509_V_ERR_INVALID_PURPOSE | back to summary |
|---|---|
| public static final int X509_V_ERR_INVALID_PURPOSE | |
| X509_V_ERR_IP_ADDRESS_MISMATCH | back to summary |
|---|---|
| public static final int X509_V_ERR_IP_ADDRESS_MISMATCH | |
| X509_V_ERR_KEYUSAGE_NO_CERTSIGN | back to summary |
|---|---|
| public static final int X509_V_ERR_KEYUSAGE_NO_CERTSIGN | |
| X509_V_ERR_KEYUSAGE_NO_CRL_SIGN | back to summary |
|---|---|
| public static final int X509_V_ERR_KEYUSAGE_NO_CRL_SIGN | |
| X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE | back to summary |
|---|---|
| public static final int X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE | |
| X509_V_ERR_NO_EXPLICIT_POLICY | back to summary |
|---|---|
| public static final int X509_V_ERR_NO_EXPLICIT_POLICY | |
| X509_V_ERR_OUT_OF_MEM | back to summary |
|---|---|
| public static final int X509_V_ERR_OUT_OF_MEM | |
| X509_V_ERR_PATH_LENGTH_EXCEEDED | back to summary |
|---|---|
| public static final int X509_V_ERR_PATH_LENGTH_EXCEEDED | |
| X509_V_ERR_PATH_LOOP | back to summary |
|---|---|
| public static final int X509_V_ERR_PATH_LOOP | |
| X509_V_ERR_PERMITTED_VIOLATION | back to summary |
|---|---|
| public static final int X509_V_ERR_PERMITTED_VIOLATION | |
| X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED | back to summary |
|---|---|
| public static final int X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED | |
| X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED | back to summary |
|---|---|
| public static final int X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED | |
| X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN | back to summary |
|---|---|
| public static final int X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN | |
| X509_V_ERR_SUBJECT_ISSUER_MISMATCH | back to summary |
|---|---|
| public static final int X509_V_ERR_SUBJECT_ISSUER_MISMATCH | |
| X509_V_ERR_SUBTREE_MINMAX | back to summary |
|---|---|
| public static final int X509_V_ERR_SUBTREE_MINMAX | |
| X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 | back to summary |
|---|---|
| public static final int X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 | |
| X509_V_ERR_SUITE_B_INVALID_ALGORITHM | back to summary |
|---|---|
| public static final int X509_V_ERR_SUITE_B_INVALID_ALGORITHM | |
| X509_V_ERR_SUITE_B_INVALID_CURVE | back to summary |
|---|---|
| public static final int X509_V_ERR_SUITE_B_INVALID_CURVE | |
| X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM | back to summary |
|---|---|
| public static final int X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM | |
| X509_V_ERR_SUITE_B_INVALID_VERSION | back to summary |
|---|---|
| public static final int X509_V_ERR_SUITE_B_INVALID_VERSION | |
| X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED | back to summary |
|---|---|
| public static final int X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED | |
| X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY | back to summary |
|---|---|
| public static final int X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY | |
| X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE | back to summary |
|---|---|
| public static final int X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE | |
| X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE | back to summary |
|---|---|
| public static final int X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE | |
| X509_V_ERR_UNABLE_TO_GET_CRL | back to summary |
|---|---|
| public static final int X509_V_ERR_UNABLE_TO_GET_CRL | |
| X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER | back to summary |
|---|---|
| public static final int X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER | |
| X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT | back to summary |
|---|---|
| public static final int X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT | |
| X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY | back to summary |
|---|---|
| public static final int X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY | |
| X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE | back to summary |
|---|---|
| public static final int X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE | |
| X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION | back to summary |
|---|---|
| public static final int X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION | |
| X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION | back to summary |
|---|---|
| public static final int X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION | |
| X509_V_ERR_UNNESTED_RESOURCE | back to summary |
|---|---|
| public static final int X509_V_ERR_UNNESTED_RESOURCE | |
| X509_V_ERR_UNSPECIFIED | back to summary |
|---|---|
| public static final int X509_V_ERR_UNSPECIFIED | |
| X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX | back to summary |
|---|---|
| public static final int X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX | |
| X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE | back to summary |
|---|---|
| public static final int X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE | |
| X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE | back to summary |
|---|---|
| public static final int X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE | |
| X509_V_ERR_UNSUPPORTED_NAME_SYNTAX | back to summary |
|---|---|
| public static final int X509_V_ERR_UNSUPPORTED_NAME_SYNTAX | |
| X509_V_OK | back to summary |
|---|---|
| public static final int X509_V_OK | |
| CertificateVerifier | back to summary |
|---|---|
| public CertificateVerifier() | |
| isValid | back to summary |
|---|---|
| public static boolean isValid(int errorCode) Returns | |
| verify | back to summary |
|---|---|
| public abstract int verify(long ssl, byte[][] x509, String authAlgorithm) Returns
| |