DatabaseClientFactory.SSLHostnameVerifierpublic static class DatabaseClientFactory.SSLHostnameVerifier.Builtin extends java.lang.Object implements DatabaseClientFactory.SSLHostnameVerifier
DatabaseClientFactory.SSLHostnameVerifier.Builtin, DatabaseClientFactory.SSLHostnameVerifier.HostnameVerifierAdapterANY, COMMON, STRICT| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getName() |
Returns the name of the built-in.
|
void |
verify(java.lang.String hostname,
java.lang.String[] cns,
java.lang.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(java.lang.String hostname,
java.lang.String[] cns,
java.lang.String[] subjectAlts)
throws javax.net.ssl.SSLException
DatabaseClientFactory.SSLHostnameVerifierverify 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 serverjavax.net.ssl.SSLException - if the hostname isn't acceptablepublic java.lang.String getName()
Copyright © 2013-2019 MarkLogic Corporation.