Class MappedRegexRealmMapper

java.lang.Object
org.wildfly.security.auth.util.SimpleRegexRealmMapper
org.wildfly.security.auth.util.MappedRegexRealmMapper
All Implemented Interfaces:
RealmMapper

public class MappedRegexRealmMapper extends SimpleRegexRealmMapper
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
  • Constructor Details

    • MappedRegexRealmMapper

      public MappedRegexRealmMapper(Pattern realmNamePattern, Map<String,String> realmNameMap)
      Construct a new instance.
      Parameters:
      realmNamePattern - the realm name pattern, which must contain at least one capture group (cannot be null)
      realmNameMap - the realm portion to realm name map (cannot be null)
    • 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 be null)
      delegate - the delegate mapper to use if the pattern is not matched (cannot be null)
      realmNameMap - the realm portion to realm name map (cannot be null)
  • Method Details