Package org.wildfly.security.auth.util
Class MappedRegexRealmMapper
java.lang.Object
org.wildfly.security.auth.util.SimpleRegexRealmMapper
org.wildfly.security.auth.util.MappedRegexRealmMapper
- All Implemented Interfaces:
RealmMapper
A simple mapping regular expression-based realm mapper. The pattern is used to find the realm portion
of the user name. Then, a map is consulted to map this realm portion to an actual configured realm name.
- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from interface org.wildfly.security.auth.server.RealmMapper
DEFAULT_REALM_MAPPER -
Constructor Summary
ConstructorsConstructorDescriptionMappedRegexRealmMapper(Pattern realmNamePattern, Map<String, String> realmNameMap) Construct a new instance.MappedRegexRealmMapper(Pattern realmNamePattern, RealmMapper delegate, Map<String, String> realmNameMap) Construct a new instance. -
Method Summary
-
Constructor Details
-
MappedRegexRealmMapper
Construct a new instance.- Parameters:
realmNamePattern- the realm name pattern, which must contain at least one capture group (cannot benull)realmNameMap- the realm portion to realm name map (cannot benull)
-
MappedRegexRealmMapper
public MappedRegexRealmMapper(Pattern realmNamePattern, RealmMapper delegate, Map<String, String> realmNameMap) Construct a new instance.- Parameters:
realmNamePattern- the realm name pattern, which must contain at least one capture group (cannot benull)delegate- the delegate mapper to use if the pattern is not matched (cannot benull)realmNameMap- the realm portion to realm name map (cannot benull)
-
-
Method Details
-
getRealmMapping
- Specified by:
getRealmMappingin interfaceRealmMapper- Overrides:
getRealmMappingin classSimpleRegexRealmMapper
-