public interface TlsHostVerifier
| Modifier and Type | Method and Description |
|---|---|
void |
init(Properties properties)
Inits the verifier instance after creation with properties.
|
void |
verifyHost(InetAddress hostAddress,
Certificate[] hostCertificates)
Verifies the given host address and its list of
Certificates are valid combination for this
TlsHostVerifier implementation. |
void init(Properties properties)
properties - verifier properties (may be null)void verifyHost(InetAddress hostAddress, Certificate[] hostCertificates) throws SSLPeerUnverifiedException
Certificates are valid combination for this
TlsHostVerifier implementation. If the verification fails, the SSLPeerUnverifiedException is thrown.hostAddress - Peer address.hostCertificates - Peer certificates. May be null if checking is enabled on the server side of TLS connection
and a TLS client comes without authentication.SSLPeerUnverifiedException - if the host was not verified.Copyright © 2018. All Rights Reserved.