Class LDAPDn

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

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

    • fromLdapName

      public static LDAPDn fromLdapName(LdapName ldapName)
    • fromString

      public static LDAPDn fromString(String dnString)
    • getLdapName

      public LdapName getLdapName()
    • 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)