/** * Creates a client to access the database by means of a REST server. * * @param host the host with the REST server * @param port the port for the REST server * @param user the user with read, write, or administrative privileges * @param password the password for the user * @param type the type of authentication applied to the request * @return a new client for making database requests * @deprecated (as of 4.0.1) use {@link #newClient(String host, int port, SecurityContext securityContext)} */ @Deprecated static public DatabaseClient newClient(String host, int port, String user, String password, Authentication type) { return newClient(host, port, null, makeSecurityContext(user, password, type, null, null), null); } /**
/** * Creates a client to access the database by means of a REST server. * * @param host the host with the REST server * @param port the port for the REST server * @param database the database to access (default: configured database for the REST server) * @param user the user with read, write, or administrative privileges * @param password the password for the user * @param type the type of authentication applied to the request * @return a new client for making database requests * @deprecated (as of 4.0.1) use {@link #newClient(String host, int port, String database, SecurityContext securityContext)} */ @Deprecated static public DatabaseClient newClient(String host, int port, String database, String user, String password, Authentication type) { return newClient(host, port, database, makeSecurityContext(user, password, type, null, null), null); } /**
/** * Creates a client to access the database by means of a REST server. * * @param host the host with the REST server * @param port the port for the REST server * @param user the user with read, write, or administrative privileges * @param password the password for the user * @param type the type of authentication applied to the request * @param context the SSL context for authenticating with the server * @return a new client for making database requests * @deprecated (as of 4.0.1) use {@link #newClient(String host, int port, SecurityContext securityContext)} */ @Deprecated static public DatabaseClient newClient(String host, int port, String user, String password, Authentication type, SSLContext context) { return newClient(host, port, null, makeSecurityContext(user, password, type, context, SSLHostnameVerifier.COMMON), null); } /**
/** * Creates a client to access the database by means of a REST server. * * @param host the host with the REST server * @param port the port for the REST server * @param database the database to access (default: configured database for the REST server) * @param user the user with read, write, or administrative privileges * @param password the password for the user * @param type the type of authentication applied to the request * @param context the SSL context for authenticating with the server * @return a new client for making database requests * @deprecated (as of 4.0.1) use {@link #newClient(String host, int port, String database, SecurityContext securityContext)} */ @Deprecated static public DatabaseClient newClient(String host, int port, String database, String user, String password, Authentication type, SSLContext context) { return newClient(host, port, database, makeSecurityContext(user, password, type, context, SSLHostnameVerifier.COMMON), null); } /**
/** * Creates a client to access the database by means of a REST server. * * @param host the host with the REST server * @param port the port for the REST server * @param user the user with read, write, or administrative privileges * @param password the password for the user * @param type the type of authentication applied to the request * @param context the SSL context for authenticating with the server * @param verifier a callback for checking hostnames * @return a new client for making database requests * @deprecated (as of 4.0.1) use {@link #newClient(String host, int port, SecurityContext securityContext)} */ @Deprecated static public DatabaseClient newClient(String host, int port, String user, String password, Authentication type, SSLContext context, SSLHostnameVerifier verifier) { return newClient(host, port, null, makeSecurityContext(user, password, type, context, verifier), null); } /**
/** * Creates a client to access the database by means of a REST server. * * @param host the host with the REST server * @param port the port for the REST server * @param database the database to access (default: configured database for the REST server) * @param user the user with read, write, or administrative privileges * @param password the password for the user * @param type the type of authentication applied to the request * @param context the SSL context for authenticating with the server * @param verifier a callback for checking hostnames * @return a new client for making database requests * @deprecated (as of 4.0.1) use {@link #newClient(String host, int port, String database, SecurityContext securityContext)} */ @Deprecated static public DatabaseClient newClient(String host, int port, String database, String user, String password, Authentication type, SSLContext context, SSLHostnameVerifier verifier) { return newClient(host, port, database, makeSecurityContext(user, password, type, context, verifier), null); }