@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.
|
Modifier and Type | Method and Description |
---|---|
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 RoleDecoder EMPTY
static final RoleDecoder DEFAULT
Roles decodeRoles(AuthorizationIdentity authorizationIdentity)
authorizationIdentity
- the authorization identity (not null
)null
)static RoleDecoder simple(String attribute)
attribute
- the attributeCopyright © 2020 JBoss by Red Hat. All rights reserved.