public class AnyHostnameVerifier extends Object implements org.apache.http.conn.ssl.X509HostnameVerifier
Constructor and Description |
---|
AnyHostnameVerifier() |
Modifier and Type | Method and Description |
---|---|
boolean |
verify(String hostname,
SSLSession session)
Always returns
true . |
void |
verify(String host,
SSLSocket ssl) |
void |
verify(String host,
String[] cns,
String[] subjectAlts) |
void |
verify(String host,
X509Certificate cert) |
public boolean verify(String hostname, SSLSession session)
true
.verify
in interface HostnameVerifier
hostname
- the hostnamesession
- the SSL sessiontrue
public void verify(String host, SSLSocket ssl) throws IOException
verify
in interface org.apache.http.conn.ssl.X509HostnameVerifier
IOException
public void verify(String host, X509Certificate cert) throws SSLException
verify
in interface org.apache.http.conn.ssl.X509HostnameVerifier
SSLException
public void verify(String host, String[] cns, String[] subjectAlts) throws SSLException
verify
in interface org.apache.http.conn.ssl.X509HostnameVerifier
SSLException
Copyright © 2015. All Rights Reserved.