Class ExportControlled.X509TrustManagerWrapper
java.lang.Object
com.mysql.jdbc.ExportControlled.X509TrustManagerWrapper
- All Implemented Interfaces:
TrustManager, X509TrustManager
- Enclosing class:
ExportControlled
public static class ExportControlled.X509TrustManagerWrapper
extends Object
implements X509TrustManager
Implementation of X509TrustManager wrapping JVM X509TrustManagers to add expiration check
-
Constructor Summary
ConstructorsConstructorDescriptionX509TrustManagerWrapper(X509TrustManager tm, boolean verifyServerCertificate) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType)
-
Constructor Details
-
X509TrustManagerWrapper
public X509TrustManagerWrapper(X509TrustManager tm, boolean verifyServerCertificate) throws CertificateException - Throws:
CertificateException
-
X509TrustManagerWrapper
public X509TrustManagerWrapper()
-
-
Method Details
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-