Class MariaDbX509TrustManager
- java.lang.Object
-
- org.mariadb.jdbc.internal.protocol.tls.MariaDbX509TrustManager
-
- All Implemented Interfaces:
javax.net.ssl.TrustManager
,javax.net.ssl.X509TrustManager
public class MariaDbX509TrustManager extends java.lang.Object implements javax.net.ssl.X509TrustManager
-
-
Field Summary
Fields Modifier and Type Field Description private javax.net.ssl.X509TrustManager
trustManager
-
Constructor Summary
Constructors Constructor Description MariaDbX509TrustManager(Options options)
MyX509TrustManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String string)
Check client trusted.void
checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String string)
Check server trusted.java.security.cert.X509Certificate[]
getAcceptedIssuers()
-
-
-
Constructor Detail
-
MariaDbX509TrustManager
public MariaDbX509TrustManager(Options options) throws java.sql.SQLException
MyX509TrustManager.- Parameters:
options
- parsed url options- Throws:
java.sql.SQLException
- exception
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String string) throws java.security.cert.CertificateException
Check client trusted.- Specified by:
checkClientTrusted
in interfacejavax.net.ssl.X509TrustManager
- Parameters:
x509Certificates
- certificatestring
- string- Throws:
java.security.cert.CertificateException
- exception
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String string) throws java.security.cert.CertificateException
Check server trusted.- Specified by:
checkServerTrusted
in interfacejavax.net.ssl.X509TrustManager
- Parameters:
x509Certificates
- certificatestring
- string- Throws:
java.security.cert.CertificateException
- exception
-
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interfacejavax.net.ssl.X509TrustManager
-
-