类 ExportControlled.X509TrustManagerWrapper
- java.lang.Object
-
- com.mysql.cj.protocol.ExportControlled.X509TrustManagerWrapper
-
- 所有已实现的接口:
TrustManager,X509TrustManager
- 封闭类:
- ExportControlled
public static class ExportControlled.X509TrustManagerWrapper extends Object implements X509TrustManager
Implementation of X509TrustManager wrapping JVM X509TrustManagers to add expiration and identity check
-
-
构造器概要
构造器 构造器 说明 X509TrustManagerWrapper(boolean verifyServerCertificate, String hostName)X509TrustManagerWrapper(X509TrustManager tm, boolean verifyServerCertificate, String hostName)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcheckClientTrusted(X509Certificate[] chain, String authType)voidcheckServerTrusted(X509Certificate[] chain, String authType)X509Certificate[]getAcceptedIssuers()
-
-
-
构造器详细资料
-
X509TrustManagerWrapper
public X509TrustManagerWrapper(X509TrustManager tm, boolean verifyServerCertificate, String hostName) throws CertificateException
-
X509TrustManagerWrapper
public X509TrustManagerWrapper(boolean verifyServerCertificate, String hostName)
-
-
方法详细资料
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- 指定者:
getAcceptedIssuers在接口中X509TrustManager
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
- 指定者:
checkServerTrusted在接口中X509TrustManager- 抛出:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
- 指定者:
checkClientTrusted在接口中X509TrustManager- 抛出:
CertificateException
-
-