Package org.openhab.core.io.net.http
Class TrustAllTrustManager
java.lang.Object
javax.net.ssl.X509ExtendedTrustManager
org.openhab.core.io.net.http.TrustAllTrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
The
TrustAllTrustManager
is a "trust all" implementation of X509ExtendedTrustManager
.- Author:
- Matthew Bowman - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate @Nullable [] chain, @Nullable String authType) void
checkClientTrusted
(X509Certificate @Nullable [] chain, @Nullable String authType, @Nullable Socket socket) void
checkClientTrusted
(X509Certificate @Nullable [] chain, @Nullable String authType, @Nullable SSLEngine engine) void
checkServerTrusted
(X509Certificate @Nullable [] chain, @Nullable String authType) void
checkServerTrusted
(X509Certificate @Nullable [] chain, @Nullable String authType, @Nullable Socket socket) void
checkServerTrusted
(X509Certificate @Nullable [] chain, @Nullable String authType, @Nullable SSLEngine engine) static TrustAllTrustManager
-
Method Details
-
getInstance
-
checkClientTrusted
public void checkClientTrusted(X509Certificate @Nullable [] chain, @Nullable String authType) throws CertificateException - Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate @Nullable [] chain, @Nullable String authType) throws CertificateException - Throws:
CertificateException
-
getAcceptedIssuers
-
checkClientTrusted
public void checkClientTrusted(X509Certificate @Nullable [] chain, @Nullable String authType, @Nullable Socket socket) throws CertificateException - Specified by:
checkClientTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate @Nullable [] chain, @Nullable String authType, @Nullable SSLEngine engine) throws CertificateException - Specified by:
checkClientTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate @Nullable [] chain, @Nullable String authType, @Nullable Socket socket) throws CertificateException - Specified by:
checkServerTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate @Nullable [] chain, @Nullable String authType, @Nullable SSLEngine engine) throws CertificateException - Specified by:
checkServerTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-