public static class DatabaseClientFactory.SSLHostnameVerifier.Builtin extends Object implements DatabaseClientFactory.SSLHostnameVerifier
Builtin supports builtin implementations of SSLHostnameVerifier.
DatabaseClientFactory.SSLHostnameVerifier.BuiltinANY, COMMON, STRICT| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the built-in.
|
void |
verify(String hostname,
String[] cns,
String[] subjectAlts)
Checks during SSL authentication that a hostname matches the Common Name or “DNS” Subject alts from the SSL certificate presented by the server.
|
public void verify(String hostname, String[] cns, String[] subjectAlts) throws SSLException
DatabaseClientFactory.SSLHostnameVerifierChecks during SSL authentication that a hostname matches the Common Name or “DNS” Subject alts from the SSL certificate presented by the server.
verify in interface DatabaseClientFactory.SSLHostnameVerifierhostname - the DNS host name of the servercns - common names from the SSL certificate presented by the serversubjectAlts - alternative subject names from the SSL certificate presented by the serverSSLException - if the hostname isn’t acceptablepublic String getName()
Returns the name of the built-in.
Copyright © 2013-2017 MarkLogic Corporation.