if (Method.SSL.toString().equalsIgnoreCase(this.connectMethod.toString())) {
method = Method.SSL;
} else {
method = Method.STANDARD;
}
LdapConnectionSettings ldapConnectionSettings = new LdapConnectionSettings(
method, this.ldapServerHostAddress, Integer.parseInt(this.portNumber),
this.searchBase, authType, this.username, this.password, this.domain);
this.ldapConnectionSettings = ldapConnectionSettings;
return ldapConnectionSettings;
}