public class UserClientRoleMappingMapper extends AbstractOIDCProtocolMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
PROVIDER_ID |
TOKEN_MAPPER_CATEGORY| Constructor and Description |
|---|
UserClientRoleMappingMapper() |
| Modifier and Type | Method and Description |
|---|---|
static ProtocolMapperModel |
create(String clientId,
String clientRolePrefix,
String name,
String tokenClaimName,
boolean accessToken,
boolean idToken) |
protected Set<String> |
flattenRoleModelToRoleNames(Set<RoleModel> roleModels,
String prefix)
Returns the role names extracted from the given
roleModels while recursively traversing "Composite Roles". |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
protected void |
setClaim(IDToken token,
ProtocolMapperModel mappingModel,
UserSessionModel userSession)
Intended to be overridden in
ProtocolMapper implementations to add claims to an token. |
close, create, getProtocol, init, postInit, transformAccessToken, transformIDToken, transformUserInfoTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformAccessTokentransformIDTokentransformUserInfoTokenvalidateConfigpublic static final String PROVIDER_ID
public List<ProviderConfigProperty> getConfigProperties()
public String getId()
public String getDisplayType()
public String getDisplayCategory()
public String getHelpText()
protected void setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession)
AbstractOIDCProtocolMapperProtocolMapper implementations to add claims to an token.setClaim in class AbstractOIDCProtocolMapperpublic static ProtocolMapperModel create(String clientId, String clientRolePrefix, String name, String tokenClaimName, boolean accessToken, boolean idToken)
protected Set<String> flattenRoleModelToRoleNames(Set<RoleModel> roleModels, String prefix)
roleModels while recursively traversing "Composite Roles".
Optionally prefixes each role name with the given prefix.
roleModels - prefix - the prefix to apply, may be nullCopyright © 2016 JBoss by Red Hat. All rights reserved.