Package org.apache.http.conn.ssl
Class DefaultHostnameVerifier
- java.lang.Object
-
- org.apache.http.conn.ssl.DefaultHostnameVerifier
-
- All Implemented Interfaces:
javax.net.ssl.HostnameVerifier
@Contract(threading=IMMUTABLE_CONDITIONAL) public final class DefaultHostnameVerifier extends java.lang.Object implements javax.net.ssl.HostnameVerifier
DefaultHostnameVerifier
implementation.- Since:
- 4.4
-
-
Constructor Summary
Constructors Constructor Description DefaultHostnameVerifier()
DefaultHostnameVerifier(PublicSuffixMatcher publicSuffixMatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
verify(java.lang.String host, java.security.cert.X509Certificate cert)
boolean
verify(java.lang.String host, javax.net.ssl.SSLSession session)
-
-
-
Constructor Detail
-
DefaultHostnameVerifier
public DefaultHostnameVerifier(PublicSuffixMatcher publicSuffixMatcher)
-
DefaultHostnameVerifier
public DefaultHostnameVerifier()
-
-
Method Detail
-
verify
public boolean verify(java.lang.String host, javax.net.ssl.SSLSession session)
- Specified by:
verify
in interfacejavax.net.ssl.HostnameVerifier
-
verify
public void verify(java.lang.String host, java.security.cert.X509Certificate cert) throws javax.net.ssl.SSLException
- Throws:
javax.net.ssl.SSLException
-
-