Package com.helger.http.security
Class HostnameVerifierVerifyAll
java.lang.Object
com.helger.http.security.HostnameVerifierVerifyAll
- All Implemented Interfaces:
HostnameVerifier
Implementation of HostnameVerifier always returning
true.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor using the current debug mode fromGlobalDebug.HostnameVerifierVerifyAll(boolean bDebug) Constructor with explicit debug flag. -
Method Summary
-
Constructor Details
-
HostnameVerifierVerifyAll
public HostnameVerifierVerifyAll()Constructor using the current debug mode fromGlobalDebug. -
HostnameVerifierVerifyAll
public HostnameVerifierVerifyAll(boolean bDebug) Constructor with explicit debug flag.- Parameters:
bDebug-trueto enable debug logging,falseto disable it.
-
-
Method Details
-
isDebug
public boolean isDebug()- Returns:
- The debug flag as passed in the constructor.
-
verify
This implementation accepts all hostnames.- Specified by:
verifyin interfaceHostnameVerifier- Parameters:
sURLHostname- The hostname to verify. May not benull.aSession- The SSL session used on the connection. May not benull.- Returns:
- Always
true.
-
toString
-