Package com.helger.commons.ws
Class TrustManagerTrustAll
- java.lang.Object
-
- com.helger.commons.ws.TrustManagerTrustAll
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class TrustManagerTrustAll extends Object implements X509TrustManager
A trust manager that accepts all certificates.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description TrustManagerTrustAll()TrustManagerTrustAll(boolean bDebug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] aChain, String sAuthType)voidcheckServerTrusted(X509Certificate[] aChain, String sAuthType)X509Certificate[]getAcceptedIssuers()booleanisDebug()StringtoString()
-
-
-
Method Detail
-
isDebug
public boolean isDebug()
- Returns:
- The debug flag as passed in the constructor.
-
getAcceptedIssuers
@Nullable public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] aChain, String sAuthType)
- Specified by:
checkServerTrustedin interfaceX509TrustManager
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] aChain, String sAuthType)
- Specified by:
checkClientTrustedin interfaceX509TrustManager
-
-