public static LDAPSearchAttributeKey valueOfKey(String key) { for (LDAPSearchAttributeKey ldapSearchAttributeKey : LDAPSearchAttributeKey.values()) { if (ldapSearchAttributeKey.getKey().equals(key)) { return ldapSearchAttributeKey; } } return null; }
public String getSearchAttribute(LDAPSearchAttributeKey ldapSearchAttributeKey) { return searchAttributes.get(ldapSearchAttributeKey.getKey()); }