Class ConnectionParameters
java.lang.Object
org.forgerock.opendj.server.embedded.ConnectionParameters
Parameters to establish connections to a directory server.
-
Method Summary
Modifier and TypeMethodDescriptionadminPort
(int port) Sets the port for directory server administration.Sets the Dn to use to bind to the directory server.bindPassword
(String password) Sets the password to use to bind to the directory server.static ConnectionParameters
Creates connection parameters.Sets the fully-qualified directory server host name.ldapPort
(int port) Sets the port on which the directory server listens for LDAP communication.ldapPortWithStartTls
(int port) Sets the port on which the directory server listens for LDAP with StartTLS communications.ldapSecurePort
(int port) Sets the port on which the directory server listens for LDAPS (secure) communication.toString()
-
Method Details
-
connectionParams
Creates connection parameters.- Returns:
- the parameters
-
toString
-
adminPort
Sets the port for directory server administration.- Parameters:
port
- the admin port- Returns:
- this builder
-
bindDn
Sets the Dn to use to bind to the directory server.- Parameters:
dn
- the bind Dn- Returns:
- this builder
-
bindPassword
Sets the password to use to bind to the directory server.- Parameters:
password
- the bind password- Returns:
- this builder
-
hostName
Sets the fully-qualified directory server host name.- Parameters:
hostName
- the hostName of the server- Returns:
- this builder
-
ldapPort
Sets the port on which the directory server listens for LDAP communication.- Parameters:
port
- the LDAP port- Returns:
- this builder
-
ldapPortWithStartTls
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
Sets the port on which the directory server listens for LDAPS (secure) communication.- Parameters:
port
- the LDAPS port- Returns:
- this builder
-