public class MappedRegexRealmMapper extends SimpleRegexRealmMapper
DEFAULT_REALM_MAPPER
Constructor and Description |
---|
MappedRegexRealmMapper(Pattern realmNamePattern,
Map<String,String> realmNameMap)
Construct a new instance.
|
MappedRegexRealmMapper(Pattern realmNamePattern,
RealmMapper delegate,
Map<String,String> realmNameMap)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getRealmMapping(Principal principal,
Evidence evidence)
Get the realm mapping.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregate, aggregate, matching, matchingEvidence, matchingEvidenceType, matchingPrincipal, matchingPrincipalType, single
public MappedRegexRealmMapper(Pattern realmNamePattern, Map<String,String> realmNameMap)
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
)public MappedRegexRealmMapper(Pattern realmNamePattern, RealmMapper delegate, Map<String,String> realmNameMap)
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
)public String getRealmMapping(Principal principal, Evidence evidence)
RealmMapper
null
if the default realm should be used.getRealmMapping
in interface RealmMapper
getRealmMapping
in class SimpleRegexRealmMapper
principal
- the authentication principal (or null
if none is known for this authentication)evidence
- the authentication evidence (or null
if none is known for this authentication)null
if no particular realm matches the authentication informationCopyright © 2020 JBoss by Red Hat. All rights reserved.