Package org.wildfly.security.util
Class LdapUtil
- java.lang.Object
-
- org.wildfly.security.util.LdapUtil
-
public class LdapUtil extends Object
Utilities for LDAP attributes manipulation.- Author:
- Jiri Ondrusek
-
-
Field Summary
Fields Modifier and Type Field Description private static String
BINARY_SUFFIX
-
Constructor Summary
Constructors Constructor Description LdapUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Attribute
getBinaryAttribute(Attributes attributes, String name)
Ldap servers can return binary attributes with suffix ;binary.
-
-
-
Field Detail
-
BINARY_SUFFIX
private static final String BINARY_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBinaryAttribute
public static Attribute getBinaryAttribute(Attributes attributes, String name)
Ldap servers can return binary attributes with suffix ;binary. This method helps to solve this case.- Parameters:
attributes
- Attributes obtained from servername
- Name of returned attribute- Returns:
- Attribute with name 'name', 'name;binary' or null if neither of them exists.
-
-