Class HostnameVerifierUtils


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

      • 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.