Class ConnectionParameters
- java.lang.Object
-
- org.forgerock.opendj.server.embedded.ConnectionParameters
-
public final class ConnectionParameters extends Object
Parameters to establish connections to a directory server.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionParametersadminPort(int port)Sets the port for directory server administration.ConnectionParametersbindDn(String dn)Sets the Dn to use to bind to the directory server.ConnectionParametersbindPassword(String password)Sets the password to use to bind to the directory server.static ConnectionParametersconnectionParams()Creates connection parameters.ConnectionParametershostName(String hostName)Sets the the fully-qualified directory server host name.ConnectionParametersldapPort(int port)Sets the port on which the directory server listens for LDAP communication.ConnectionParametersldapPortWithStartTls(int port)Sets the port on which the directory server listens for LDAP with StartTLS communications.ConnectionParametersldapSecurePort(int port)Sets the port on which the directory server listens for LDAPS (secure) communication.StringtoString()
-
-
-
Method Detail
-
connectionParams
public static ConnectionParameters connectionParams()
Creates connection parameters.- Returns:
- the parameters
-
adminPort
public ConnectionParameters adminPort(int port)
Sets the port for directory server administration.- Parameters:
port- the admin port- Returns:
- this builder
-
bindDn
public ConnectionParameters bindDn(String dn)
Sets the Dn to use to bind to the directory server.- Parameters:
dn- the bind Dn- Returns:
- this builder
-
bindPassword
public ConnectionParameters bindPassword(String password)
Sets the password to use to bind to the directory server.- Parameters:
password- the bind password- Returns:
- this builder
-
hostName
public ConnectionParameters hostName(String hostName)
Sets the the fully-qualified directory server host name.- Parameters:
hostName- the hostName of the server- Returns:
- this builder
-
ldapPort
public ConnectionParameters ldapPort(int port)
Sets the port on which the directory server listens for LDAP communication.- Parameters:
port- the LDAP port- Returns:
- this builder
-
ldapPortWithStartTls
public ConnectionParameters ldapPortWithStartTls(int port)
Sets the port on which the directory server listens for LDAP with StartTLS communications.- Parameters:
port- the LDAP with StartTLS port- Returns:
- this builder
-
ldapSecurePort
public ConnectionParameters ldapSecurePort(int port)
Sets the port on which the directory server listens for LDAPS (secure) communication.- Parameters:
port- the LDAPS port- Returns:
- this builder
-
-