public class SourceAddressRoleDecoder extends Object implements RoleDecoder
DEFAULT, EMPTY, KEY_ROLES, KEY_SOURCE_ADDRESS
Constructor and Description |
---|
SourceAddressRoleDecoder(Pattern sourceAddressPattern,
Roles roles)
Construct a new instance.
|
SourceAddressRoleDecoder(String sourceAddress,
Roles roles)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Roles |
decodeRoles(AuthorizationIdentity authorizationIdentity)
Decode the role set using the source IP address runtime attribute from the given authorization identity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregate, simple
public SourceAddressRoleDecoder(String sourceAddress, Roles roles)
sourceAddress
- the source IP address to match (cannot be null
)roles
- the roles to associate with the identity if the actual source IP address matches
the given source IP addresspublic SourceAddressRoleDecoder(Pattern sourceAddressPattern, Roles roles)
sourceAddressPattern
- the source IP address pattern to match (cannot be null
)roles
- the roles to associate with the identity if the actual source IP address matches
the given patternpublic Roles decodeRoles(AuthorizationIdentity authorizationIdentity)
decodeRoles
in interface RoleDecoder
authorizationIdentity
- the authorization identity (not null
)null
)Copyright © 2021 JBoss by Red Hat. All rights reserved.