public class RFC4519MemberDnMapper extends Object implements AttributeMapper
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_KEY |
Constructor and Description |
---|
RFC4519MemberDnMapper(String groupMemberAttribute,
boolean relaxedDnStandardisation) |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Get the key to use when storing the attribute on an entity
with
Attributes . |
Set<String> |
getRequiredLdapAttributes()
Returns the LDAP attributes that should be requested in a search where
AttributeMapper.getValues(DirContextAdapter) will
be called on the results. |
Set<String> |
getValues(org.springframework.ldap.core.DirContextAdapter ctx)
Map the value of the key from the directory context.
|
public static final String ATTRIBUTE_KEY
public RFC4519MemberDnMapper(String groupMemberAttribute, boolean relaxedDnStandardisation)
public String getKey()
AttributeMapper
Attributes
.getKey
in interface AttributeMapper
public Set<String> getValues(org.springframework.ldap.core.DirContextAdapter ctx) throws Exception
AttributeMapper
getValues
in interface AttributeMapper
ctx
- directory context containing attributes.Exception
- error retrieving value. The attribute will not be set.public Set<String> getRequiredLdapAttributes()
AttributeMapper
AttributeMapper.getValues(DirContextAdapter)
will
be called on the results. If an implementation returns null
then all attributes will
be requested.getRequiredLdapAttributes
in interface AttributeMapper
null
for allCopyright © 2021 Atlassian. All rights reserved.