public static interface DatabaseClientFactory.SSLHostnameVerifier
| Modifier and Type | Interface and Description |
|---|---|
static class |
DatabaseClientFactory.SSLHostnameVerifier.Builtin
Builtin supports builtin implementations of SSLHostnameVerifier.
|
| Modifier and Type | Field and Description |
|---|---|
static DatabaseClientFactory.SSLHostnameVerifier.Builtin |
ANY
The ANY SSLHostnameVerifier allows any hostname, which can be useful during initial development when a valid SSL certificate is not available but is not recommended for production because it would permit an invalid SSL certificate.
|
static DatabaseClientFactory.SSLHostnameVerifier.Builtin |
COMMON
The COMMON SSLHostnameVerifier applies common rules for checking hostnames during SSL authentication (similar to org.apache.http.conn.ssl.BrowserCompatHostnameVerifier).
|
static DatabaseClientFactory.SSLHostnameVerifier.Builtin |
STRICT
The STRICT SSLHostnameVerifier applies strict rules for checking hostnames during SSL authentication (similar to org.apache.http.conn.ssl.StrictHostnameVerifier).
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static final DatabaseClientFactory.SSLHostnameVerifier.Builtin ANY
The ANY SSLHostnameVerifier allows any hostname, which can be useful during initial development when a valid SSL certificate is not available but is not recommended for production because it would permit an invalid SSL certificate.
static final DatabaseClientFactory.SSLHostnameVerifier.Builtin COMMON
The COMMON SSLHostnameVerifier applies common rules for checking hostnames during SSL authentication (similar to org.apache.http.conn.ssl.BrowserCompatHostnameVerifier). It allows any level of subdomains for SSL certificates with wildcard domains.
static final DatabaseClientFactory.SSLHostnameVerifier.Builtin STRICT
The STRICT SSLHostnameVerifier applies strict rules for checking hostnames during SSL authentication (similar to org.apache.http.conn.ssl.StrictHostnameVerifier). It allows one level of subdomain for SSL certificates with wildcard domains like RFC 2818.
void verify(String hostname, String[] cns, String[] subjectAlts) throws SSLException
Checks during SSL authentication that a hostname matches the Common Name or “DNS” Subject alts from the SSL certificate presented by the server.
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 serverSSLException - if the hostname isn’t acceptableCopyright © 2013-2017 MarkLogic Corporation.