public class SSLMirrorHostVerifier extends Object implements HostnameVerifier
| Constructor and Description |
|---|
SSLMirrorHostVerifier(InstanceParams params)
Construct an SSLMirrorHostVerifier
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
peerMatches(SSLSession sslSession)
Checks whether the SSL session peer's certificate DN matches our own.
|
boolean |
verify(String targetHost,
SSLSession sslSession)
Checks whether an SSL connection has been made to the intended target.
|
public SSLMirrorHostVerifier(InstanceParams params) throws IllegalArgumentException
params - the instantiation parameters.IllegalArgumentException - if the instance cannot be created due
to a problem related to the input parameterspublic boolean verify(String targetHost, SSLSession sslSession)
verify in interface HostnameVerifiertargetHost - the host to which a connection is being established.
This parameter is not used by this implementation.sslSession - the established SSL sessionpublic boolean peerMatches(SSLSession sslSession)
sslSession - the SSL session that has been established with a peerCopyright © 2024. All rights reserved.