Package eu.tneitzel.rmg.networking
Class DummyTrustManager
- java.lang.Object
-
- eu.tneitzel.rmg.networking.DummyTrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class DummyTrustManager extends Object implements X509TrustManager
A dummy implementation for a trust manager. Accepts all certificates. Should never be used within of other applications where trust matters. Not sure where this code was initially from. Probably copied from this project gist: https://gist.github.com/matthewromano/4178946- Author:
- Tobias Neitzel (@qtc_de)
-
-
Constructor Summary
Constructors Constructor Description DummyTrustManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] chain, String authType)voidcheckServerTrusted(X509Certificate[] chain, String authType)X509Certificate[]getAcceptedIssuers()
-
-
-
Method Detail
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
-