Class LDAPDn
- java.lang.Object
-
- org.keycloak.storage.ldap.idm.model.LDAPDn
-
public class LDAPDn extends Object
- Author:
- Marek Posolda
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLDAPDn.RDNSingle RDN inside the DN.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFirst(String rdnName, String rdnValue)voidaddFirst(LDAPDn.RDN entry)booleanequals(Object obj)static LDAPDnfromString(String dnString)LDAPDn.RDNgetFirstRdn()LDAPDngetParentDn()inthashCode()booleanisDescendantOf(LDAPDn expectedParentDn)StringtoString()
-
-
-
Method Detail
-
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(LDAPDn.RDN entry)
-
-