public class MariaDbX509TrustManager extends Object implements X509TrustManager
Constructor and Description |
---|
MariaDbX509TrustManager(Options options)
MyX509TrustManager.
|
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String string)
Check client trusted.
|
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String string)
Check server trusted.
|
X509Certificate[] |
getAcceptedIssuers() |
public MariaDbX509TrustManager(Options options) throws SQLException
options
- parsed url optionsSQLException
- exceptionpublic void checkClientTrusted(X509Certificate[] x509Certificates, String string) throws CertificateException
checkClientTrusted
in interface X509TrustManager
x509Certificates
- certificatestring
- stringCertificateException
- exceptionpublic void checkServerTrusted(X509Certificate[] x509Certificates, String string) throws CertificateException
checkServerTrusted
in interface X509TrustManager
x509Certificates
- certificatestring
- stringCertificateException
- exceptionpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2017. All rights reserved.