Class HostnameVerifierUtils

java.lang.Object
nl.altindag.ssl.util.HostnameVerifierUtils

public final class HostnameVerifierUtils extends Object
Author:
Hakan Altindag
  • Method Details

    • createBasic

      public static HostnameVerifier createBasic()
      Creates a basic hostname verifier which validates the hostname against the peer host from the ssl session. This basic hostname verifier provides minimal security. It is recommended to use createFenix()
    • createUnsafe

      public static HostnameVerifier createUnsafe()
      Creates an unsafe hostname verifier which does not validate the hostname at all. This hostname verifier is unsafe and should be avoided
    • createFenix

      @Deprecated public static HostnameVerifier createFenix()
      Deprecated.
      Creates a fenix hostname verifier which validates the hostname against the SAN field of the peer certificate.
    • createDefault

      public static HostnameVerifier createDefault()
      Creates the default hostname verifier which is able to validate the hostname against the SAN field of the peer certificate.
    • createEnhanceable

      public static HostnameVerifier createEnhanceable(HostnameVerifier baseHostnameVerifier, Predicate<HostnameVerifierParameters> hostnameVerifierParametersValidator)