Class LdapEntry

java.lang.Object
edu.internet2.middleware.grouper.ldap.LdapEntry

public class LdapEntry extends Object
  • Constructor Details

    • LdapEntry

      public LdapEntry(String dn)
      Parameters:
      dn -
  • Method Details

    • getDn

      public String getDn()
      Returns:
      the dn
    • setDn

      public void setDn(String dn)
      Parameters:
      dn - the dn to set
    • getAttribute

      public LdapAttribute getAttribute(String attributeName)
      Parameters:
      attributeName -
      Returns:
      attribute
    • addAttribute

      public void addAttribute(LdapAttribute attribute)
      add or replace an attribute, note this will replace existing values too
      Parameters:
      attribute -
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAttributes

      public Collection<LdapAttribute> getAttributes()
      Returns:
      the attributes