Class HostnameVerifierVerifyAll

java.lang.Object
com.helger.http.security.HostnameVerifierVerifyAll
All Implemented Interfaces:
HostnameVerifier

public class HostnameVerifierVerifyAll extends Object implements HostnameVerifier
Implementation of HostnameVerifier always returning true.
Author:
Philip Helger
  • Constructor Details

    • HostnameVerifierVerifyAll

      public HostnameVerifierVerifyAll()
      Constructor using the current debug mode from GlobalDebug.
    • HostnameVerifierVerifyAll

      public HostnameVerifierVerifyAll(boolean bDebug)
      Constructor with explicit debug flag.
      Parameters:
      bDebug - true to enable debug logging, false to disable it.
  • Method Details

    • isDebug

      public boolean isDebug()
      Returns:
      The debug flag as passed in the constructor.
    • verify

      public boolean verify(String sURLHostname, SSLSession aSession)
      This implementation accepts all hostnames.
      Specified by:
      verify in interface HostnameVerifier
      Parameters:
      sURLHostname - The hostname to verify. May not be null.
      aSession - The SSL session used on the connection. May not be null.
      Returns:
      Always true.
    • toString

      public String toString()
      Overrides:
      toString in class Object