Package nl.altindag.ssl.util
Class HostnameVerifierUtils
- java.lang.Object
-
- nl.altindag.ssl.util.HostnameVerifierUtils
-
public final class HostnameVerifierUtils extends Object
- Author:
- Hakan Altindag
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HostnameVerifiercreateBasic()Creates a basic hostname verifier which validates the hostname against the peer host from the ssl session.static HostnameVerifiercreateFenix()Creates a fenix hostname verifier which validates the hostname against the SAN field of the peer certificate.static HostnameVerifiercreateUnsafe()Creates an unsafe hostname verifier which does not validate the hostname at all.
-
-
-
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 usecreateFenix()
-
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
public static HostnameVerifier createFenix()
Creates a fenix hostname verifier which validates the hostname against the SAN field of the peer certificate.
-
-