Class LdapUtil

  • public class LdapUtil
    extends Object
    Utilities for LDAP attributes manipulation.
    Jiri Ondrusek
    • Constructor Detail

      • LdapUtil

        public LdapUtil()
    • 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.
        attributes - Attributes obtained from server
        name - Name of returned attribute
        Attribute with name 'name', 'name;binary' or null if neither of them exists.