Class LdapEntry

java.lang.Object
org.gridgain.internal.security.ldap.LdapEntry

public class LdapEntry extends Object
A single entry returned by an Ldap search: the distinguished name the directory reports for it together with the attributes the search asked for.

Both halves come from the directory itself, which is what makes them usable as the authoritative spelling of an identity: a search matches under case-insensitive matching rules, so the values the caller searched with cannot be trusted to be the values the directory stores.

  • Constructor Details

    • LdapEntry

      public LdapEntry(String dn, Map<String,List<String>> attributes)
      Constructor.
      Parameters:
      dn - Distinguished name of the entry.
      attributes - Attributes returned by the search, keyed by attribute name.
  • Method Details

    • dn

      public String dn()
      Returns the distinguished name of the entry, as reported by the directory.
      Returns:
      Distinguished name of the entry.
    • attributes

      public Map<String,List<String>> attributes()
      Returns the attributes returned by the search, keyed by attribute name.
      Returns:
      Attributes of the entry.
    • toString

      public String toString()
      Overrides:
      toString in class Object