Package com.helger.commons.ws
Class TrustManagerTrustAll
java.lang.Object
com.helger.commons.ws.TrustManagerTrustAll
- All Implemented Interfaces:
TrustManager,X509TrustManager
A trust manager that accepts all certificates.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] aChain, String sAuthType) voidcheckServerTrusted(X509Certificate[] aChain, String sAuthType) booleanisDebug()toString()
-
Constructor Details
-
TrustManagerTrustAll
public TrustManagerTrustAll() -
TrustManagerTrustAll
public TrustManagerTrustAll(boolean bDebug)
-
-
Method Details
-
isDebug
public boolean isDebug()- Returns:
- The debug flag as passed in the constructor.
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
checkServerTrusted
- Specified by:
checkServerTrustedin interfaceX509TrustManager
-
checkClientTrusted
- Specified by:
checkClientTrustedin interfaceX509TrustManager
-
toString
-