Class HttpComponent4.CustomHostnameVerifier
- java.lang.Object
-
- com.foxinmy.weixin4j.http.support.apache4.HttpComponent4.CustomHostnameVerifier
-
- All Implemented Interfaces:
HostnameVerifier
,org.apache.http.conn.ssl.X509HostnameVerifier
- Enclosing class:
- HttpComponent4
protected static class HttpComponent4.CustomHostnameVerifier extends Object implements org.apache.http.conn.ssl.X509HostnameVerifier
-
-
Constructor Summary
Constructors Constructor Description CustomHostnameVerifier(HostnameVerifier hostnameVerifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
verify(String host, String[] cns, String[] subjectAlts)
void
verify(String host, X509Certificate cert)
boolean
verify(String hostname, SSLSession session)
void
verify(String host, SSLSocket ssl)
-
-
-
Constructor Detail
-
CustomHostnameVerifier
public CustomHostnameVerifier(HostnameVerifier hostnameVerifier)
-
-
Method Detail
-
verify
public boolean verify(String hostname, SSLSession session)
- Specified by:
verify
in interfaceHostnameVerifier
-
verify
public void verify(String host, SSLSocket ssl) throws IOException
- Specified by:
verify
in interfaceorg.apache.http.conn.ssl.X509HostnameVerifier
- Throws:
IOException
-
verify
public void verify(String host, X509Certificate cert) throws SSLException
- Specified by:
verify
in interfaceorg.apache.http.conn.ssl.X509HostnameVerifier
- Throws:
SSLException
-
verify
public void verify(String host, String[] cns, String[] subjectAlts) throws SSLException
- Specified by:
verify
in interfaceorg.apache.http.conn.ssl.X509HostnameVerifier
- Throws:
SSLException
-
-