Class LDAPDn

java.lang.Object
org.keycloak.storage.ldap.idm.model.LDAPDn

public class LDAPDn extends Object
Author:
Marek Posolda
  • Method Details

    • fromString

      public static LDAPDn fromString(String dnString)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public LDAPDn.RDN getFirstRdn()
      Returns:
      first entry. Usually entry corresponding to something like "uid=joe" from the DN like "uid=joe,dc=something,dc=org"
    • getParentDn

      public LDAPDn getParentDn()
      Returns:
      DN like "dc=something,dc=org" from the DN like "uid=joe,dc=something,dc=org". Returned DN will be new clone not related to the original DN instance.
    • isDescendantOf

      public boolean isDescendantOf(LDAPDn expectedParentDn)
    • addFirst

      public void addFirst(String rdnName, String rdnValue)
    • addFirst

      public void addFirst(LDAPDn.RDN entry)