Class LdapMapDn.RDN
java.lang.Object
org.keycloak.models.map.storage.ldap.model.LdapMapDn.RDN
- Enclosing class:
- LdapMapDn
Single RDN inside the DN. RDN usually consists of single item like "uid=john" . In some rare cases, it can have multiple
sub-entries like "uid=john+sn=Doe"
-
Method Summary
Modifier and TypeMethodDescriptiongetAttrValue
(String attrName) Assume that RDN is something like "uid=john", then this method will return "john" in case that attrName is "uid" .boolean
removeAttrValue
(String attrName) void
setAttrValue
(String attrName, String newAttrValue) toString()
toString
(boolean escaped)
-
Method Details
-
getAllKeys
- Returns:
- Keys in the RDN. Returned list is the copy, which is not linked to the original RDN
-
getAttrValue
Assume that RDN is something like "uid=john", then this method will return "john" in case that attrName is "uid" . This is useful in case that RDN is multi-key - something like "uid=john+cn=John Doe" and we want to return just "john" as the value of "uid" The returned value will be unescaped -
setAttrValue
-
removeAttrValue
-
toString
-
toString
- Parameters:
escaped
- indicates whether return escaped or unescaped values. EG. "uid=john,comma" VS "uid=john\,comma"
-