| | |
| | | private String hostName; |
| | | private Integer ldapPort; |
| | | private Integer ldapsPort; |
| | | private boolean enableStartTLS; |
| | | |
| | | private ConnectionParameters() |
| | | { |
| | |
| | | return new ConnectionParameters(); |
| | | } |
| | | |
| | | @Override |
| | | public String toString() |
| | | { |
| | | return "ConnectionParameters [" |
| | | + "host name=" + hostName |
| | | + ", ldap port=" + ldapPort |
| | | + ", ldaps port=" + ldapsPort |
| | | + ", admin port=" + adminPort |
| | | + ", bind DN=" + bindDn |
| | | + ", admin uid=" + adminUid |
| | | + "]"; |
| | | |
| | | } |
| | | |
| | | String getAdminPassword() |
| | | { |
| | | return adminPassword; |
| | |
| | | return ldapsPort; |
| | | } |
| | | |
| | | boolean isStartTLSEnabled() |
| | | { |
| | | return enableStartTLS; |
| | | } |
| | | |
| | | /** |
| | | * Sets the password of the Global Administrator to use to bind to the server. |
| | | * |
| | |
| | | } |
| | | |
| | | /** |
| | | * Sets the start TLS indicator. |
| | | * |
| | | * @param startTLS |
| | | * the indicator which should be {@code true} to enable StartTLS, {@code false} otherwise |
| | | * @return this builder |
| | | */ |
| | | public ConnectionParameters enableStartTLS(boolean startTLS) |
| | | { |
| | | enableStartTLS = startTLS; |
| | | return this; |
| | | } |
| | | |
| | | /** |
| | | * Sets the the fully-qualified directory server host name. |
| | | * |
| | | * @param hostName |