Package net.timewalker.ffmq4.utils.ssl
Class PermissiveTrustManager
- java.lang.Object
-
- net.timewalker.ffmq4.utils.ssl.PermissiveTrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class PermissiveTrustManager extends Object implements X509TrustManager
Trivial implementation of an X509TrustManager that does not check the hostname, validity date nor chain of authority of certificates.
Useful when using an home-made self-signed certificate.
-
-
Constructor Summary
Constructors Constructor Description PermissiveTrustManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] arg0, String arg1)voidcheckServerTrusted(X509Certificate[] arg0, String arg1)X509Certificate[]getAcceptedIssuers()
-
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
-