DatabaseClientFactory.SSLHostnameVerifier.Builtinpublic static interface DatabaseClientFactory.SSLHostnameVerifier
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
DatabaseClientFactory.SSLHostnameVerifier.Builtin |
Builtin supports builtin implementations of SSLHostnameVerifier.
|
static class |
DatabaseClientFactory.SSLHostnameVerifier.HostnameVerifierAdapter |
HostnameVerifierAdapter verifies the hostname,SSLSession and X509Certificate certificate.
|
| Modifier and Type | Field | 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 | Description |
|---|---|---|
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.
|
static final DatabaseClientFactory.SSLHostnameVerifier.Builtin ANY
static final DatabaseClientFactory.SSLHostnameVerifier.Builtin COMMON
static final DatabaseClientFactory.SSLHostnameVerifier.Builtin STRICT
void verify(java.lang.String hostname,
java.lang.String[] cns,
java.lang.String[] subjectAlts)
throws javax.net.ssl.SSLException
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 acceptableCopyright © 2013-2021 MarkLogic Corporation.