public class DatabaseClientFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DatabaseClientFactory.Authentication
Authentication enumerates the methods for verifying a user and
password with the database.
|
static interface |
DatabaseClientFactory.SSLHostnameVerifier
An SSLHostnameVerifier checks whether a hostname is acceptable
during SSL authentication.
|
| Modifier and Type | Method and Description |
|---|---|
static DatabaseClient |
newClient(String host,
int port)
Creates a client to access the database by means of a REST server
without any authentication.
|
static DatabaseClient |
newClient(String host,
int port,
String user,
String password,
DatabaseClientFactory.Authentication type)
Creates a client to access the database by means of a REST server.
|
static DatabaseClient |
newClient(String host,
int port,
String user,
String password,
DatabaseClientFactory.Authentication type,
SSLContext context)
Creates a client to access the database by means of a REST server.
|
static DatabaseClient |
newClient(String host,
int port,
String user,
String password,
DatabaseClientFactory.Authentication type,
SSLContext context,
DatabaseClientFactory.SSLHostnameVerifier verifier)
Creates a client to access the database by means of a REST server.
|
public static DatabaseClient newClient(String host, int port)
host - the host with the REST serverport - the port for the REST serverpublic static DatabaseClient newClient(String host, int port, String user, String password, DatabaseClientFactory.Authentication type)
host - the host with the REST serverport - the port for the REST serveruser - the user with read, write, or administrative privilegespassword - the password for the usertype - the type of authentication applied to the requestpublic static DatabaseClient newClient(String host, int port, String user, String password, DatabaseClientFactory.Authentication type, SSLContext context)
host - the host with the REST serverport - the port for the REST serveruser - the user with read, write, or administrative privilegespassword - the password for the usertype - the type of authentication applied to the requestcontext - the SSL content for authenticating with the serverpublic static DatabaseClient newClient(String host, int port, String user, String password, DatabaseClientFactory.Authentication type, SSLContext context, DatabaseClientFactory.SSLHostnameVerifier verifier)
host - the host with the REST serverport - the port for the REST serveruser - the user with read, write, or administrative privilegespassword - the password for the usertype - the type of authentication applied to the requestcontext - the SSL content for authenticating with the serververifier - a callback for checking hostnamesCopyright © 2013-2014 MarkLogic Corporation.