public static class DatabaseClientFactory.SSLHostnameVerifier.Builtin extends java.lang.Object implements DatabaseClientFactory.SSLHostnameVerifier
DatabaseClientFactory.SSLHostnameVerifier.Builtin, DatabaseClientFactory.SSLHostnameVerifier.HostnameVerifierAdapter
ANY, COMMON, STRICT
Modifier and Type | Method and 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.SSLHostnameVerifier
verify
in interface DatabaseClientFactory.SSLHostnameVerifier
hostname
- 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-2021 MarkLogic Corporation.