Class AttributeMapping
java.lang.Object
org.wildfly.security.auth.realm.ldap.AttributeMapping
Definition of a mapping from LDAP to an Elytron attribute.
- Author:
- Darran Lofthouse
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeMapping.BuilderfromFilter(String filter) Create an attribute mapping based on the results of the givenfilter.static AttributeMapping.BuilderCreate an attribute mapping using LDAP entry of identity itself.static AttributeMapping.BuilderfromReference(String reference) Create an attribute mapping using LDAP entry referenced by attribute of identity entry.
-
Field Details
-
DEFAULT_FILTERED_NAME
- See Also:
-
DEFAULT_DN_NAME
- See Also:
-
DEFAULT_ROLE_RECURSION_ATTRIBUTE
- See Also:
-
-
Method Details
-
fromIdentity
Create an attribute mapping using LDAP entry of identity itself.
- Returns:
- this builder
-
fromFilter
Create an attribute mapping based on the results of the given
filter.The
filtermay have one and exactly one {0} string that will be used to replace with the distinguished name of the identity. In this case, the filter is specially useful when the values for this attribute should be obtained from a separated entry. For instance, retrieving roles from entries with a object class of groupOfNames where the identity's DN is a value of a member attribute.- Parameters:
filter- the filter that is going to be used to search for entries and obtain values for this attribute- Returns:
- this builder
-
fromReference
Create an attribute mapping using LDAP entry referenced by attribute of identity entry.
- Parameters:
reference- the name of LDAP attribute containing DN of LDAP entry, from which should be value loaded.- Returns:
- this builder
-