public class HostnameVerifierIgnore extends java.lang.Object implements HostnameVerifier
This implementation always allow such connections.
To use:
| Constructor and Description |
|---|
HostnameVerifierIgnore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
verify(java.lang.String hostname,
SSLSession session)
Always accept the connection even when the host to connect to and the
server name from the certificate mismatch
|
public boolean verify(java.lang.String hostname,
SSLSession session)
verify in interface HostnameVerifierhostname - the host namesession - SSLSession used on the connection to host© Portions Copyright 2003, 2020 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2020, Oracle and/or its affiliates. All rights reserved.