Package com.codedx.security
Class X509HostnameVerifierWithExceptions
- java.lang.Object
-
- org.apache.http.conn.ssl.AbstractVerifier
-
- com.codedx.security.X509HostnameVerifierWithExceptions
-
- All Implemented Interfaces:
HostnameVerifier
,org.apache.http.conn.ssl.X509HostnameVerifier
public class X509HostnameVerifierWithExceptions extends org.apache.http.conn.ssl.AbstractVerifier
X509HostnameVerifier implementation that delegates to another one, but will allow a particular set of hosts through even if the delegate verifier fails.
-
-
Constructor Summary
Constructors Constructor Description X509HostnameVerifierWithExceptions(org.apache.http.conn.ssl.X509HostnameVerifier delegate, Set<String> allowedExceptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
verify(String host, String[] cns, String[] subjectAlts)
-
-
-
Method Detail
-
verify
public void verify(String host, String[] cns, String[] subjectAlts) throws SSLException
- Throws:
SSLException
-
-