Package org.keycloak.protocol
Class ProtocolMapperUtils
java.lang.Object
org.keycloak.protocol.ProtocolMapperUtils
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final int
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
static ProtocolMapperModel
findLocaleMapper
(KeycloakSession session) Find the builtin locale mapper.static Stream<Map.Entry<ProtocolMapperModel,
ProtocolMapper>> getSortedProtocolMappers
(KeycloakSession session, ClientSessionContext ctx) static Stream<Map.Entry<ProtocolMapperModel,
ProtocolMapper>> getSortedProtocolMappers
(KeycloakSession session, ClientSessionContext ctx, Predicate<Map.Entry<ProtocolMapperModel, ProtocolMapper>> filter) static String
getUserModelValue
(UserModel user, String propertyName) static boolean
isEnabled
(KeycloakSession session, ProtocolMapperModel mapper)
-
Field Details
-
USER_ROLE
- See Also:
-
USER_ATTRIBUTE
- See Also:
-
USER_SESSION_NOTE
- See Also:
-
MULTIVALUED
- See Also:
-
AGGREGATE_ATTRS
- See Also:
-
USER_MODEL_PROPERTY_LABEL
- See Also:
-
USER_MODEL_PROPERTY_HELP_TEXT
- See Also:
-
USER_MODEL_ATTRIBUTE_LABEL
- See Also:
-
USER_MODEL_ATTRIBUTE_HELP_TEXT
- See Also:
-
USER_MODEL_CLIENT_ROLE_MAPPING_CLIENT_ID
- See Also:
-
USER_MODEL_CLIENT_ROLE_MAPPING_CLIENT_ID_LABEL
- See Also:
-
USER_MODEL_CLIENT_ROLE_MAPPING_CLIENT_ID_HELP_TEXT
- See Also:
-
USER_MODEL_CLIENT_ROLE_MAPPING_ROLE_PREFIX
- See Also:
-
USER_MODEL_CLIENT_ROLE_MAPPING_ROLE_PREFIX_LABEL
- See Also:
-
USER_MODEL_CLIENT_ROLE_MAPPING_ROLE_PREFIX_HELP_TEXT
- See Also:
-
USER_MODEL_REALM_ROLE_MAPPING_ROLE_PREFIX
- See Also:
-
USER_MODEL_REALM_ROLE_MAPPING_ROLE_PREFIX_LABEL
- See Also:
-
USER_MODEL_REALM_ROLE_MAPPING_ROLE_PREFIX_HELP_TEXT
- See Also:
-
USER_SESSION_MODEL_NOTE_LABEL
- See Also:
-
USER_SESSION_MODEL_NOTE_HELP_TEXT
- See Also:
-
MULTIVALUED_LABEL
- See Also:
-
AGGREGATE_ATTRS_LABEL
- See Also:
-
MULTIVALUED_HELP_TEXT
- See Also:
-
AGGREGATE_ATTRS_HELP_TEXT
- See Also:
-
SUB_MAPPER
public static final int SUB_MAPPER- See Also:
-
PRIORITY_ROLE_NAMES_MAPPER
public static final int PRIORITY_ROLE_NAMES_MAPPER- See Also:
-
PRIORITY_HARDCODED_ROLE_MAPPER
public static final int PRIORITY_HARDCODED_ROLE_MAPPER- See Also:
-
PRIORITY_AUDIENCE_RESOLVE_MAPPER
public static final int PRIORITY_AUDIENCE_RESOLVE_MAPPER- See Also:
-
PRIORITY_ROLE_MAPPER
public static final int PRIORITY_ROLE_MAPPER- See Also:
-
PRIORITY_SCRIPT_MAPPER
public static final int PRIORITY_SCRIPT_MAPPER- See Also:
-
-
Constructor Details
-
ProtocolMapperUtils
public ProtocolMapperUtils()
-
-
Method Details
-
getUserModelValue
-
findLocaleMapper
Find the builtin locale mapper.- Parameters:
session
- A KeycloakSession- Returns:
- The builtin locale mapper.
-
getSortedProtocolMappers
public static Stream<Map.Entry<ProtocolMapperModel,ProtocolMapper>> getSortedProtocolMappers(KeycloakSession session, ClientSessionContext ctx) -
getSortedProtocolMappers
public static Stream<Map.Entry<ProtocolMapperModel,ProtocolMapper>> getSortedProtocolMappers(KeycloakSession session, ClientSessionContext ctx, Predicate<Map.Entry<ProtocolMapperModel, ProtocolMapper>> filter) -
compare
-
isEnabled
-