public class SimpleRegexRealmMapper extends Object implements RealmMapper
DEFAULT_REALM_MAPPER
Constructor and Description |
---|
SimpleRegexRealmMapper(Pattern realmNamePattern)
Construct a new instance.
|
SimpleRegexRealmMapper(Pattern realmNamePattern,
RealmMapper delegate)
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 SimpleRegexRealmMapper(Pattern realmNamePattern)
realmNamePattern
- the realm name pattern, which must contain at least one capture group (cannot be null
)IllegalArgumentException
- if the given pattern does not contain a capture grouppublic SimpleRegexRealmMapper(Pattern realmNamePattern, RealmMapper delegate)
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
)IllegalArgumentException
- if the given pattern does not contain a capture grouppublic String getRealmMapping(Principal principal, Evidence evidence)
RealmMapper
null
if the default realm should be used.getRealmMapping
in interface RealmMapper
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.