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, waitaggregate, aggregate, matching, matchingEvidence, matchingEvidenceType, matchingPrincipal, matchingPrincipalType, singlepublic 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)
RealmMappernull if the default realm should be used.getRealmMapping in interface RealmMapperprincipal - 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 © 2018 JBoss by Red Hat. All rights reserved.