@FunctionalInterface public interface RoleDecoder
Modifier and Type | Field and Description |
---|---|
static RoleDecoder |
DEFAULT
A role decoder which always decodes roles from the attribute called "Roles".
|
static RoleDecoder |
EMPTY
A role decoder which decodes no roles.
|
static String |
KEY_ROLES
A key whose value is the string "Roles", to provide a standard/default location at which roles may be found.
|
static String |
KEY_SOURCE_ADDRESS
A key whose value is the string "Source-Address".
|
Modifier and Type | Method and Description |
---|---|
static RoleDecoder |
aggregate(RoleDecoder... decoders)
Create an aggregate role decoder.
|
Roles |
decodeRoles(AuthorizationIdentity authorizationIdentity)
Decode the role set from the given authorization identity.
|
static RoleDecoder |
simple(String attribute)
Create a simple role decoder which returns the values of the given attribute.
|
static final String KEY_ROLES
static final String KEY_SOURCE_ADDRESS
static final RoleDecoder EMPTY
static final RoleDecoder DEFAULT
Roles decodeRoles(AuthorizationIdentity authorizationIdentity)
authorizationIdentity
- the authorization identity (not null
)null
)static RoleDecoder simple(String attribute)
attribute
- the attributestatic RoleDecoder aggregate(RoleDecoder... decoders)
decoders
- the role decoders to apply (must not be null
or contain null
elements)null
)Copyright © 2021 JBoss by Red Hat. All rights reserved.