public class UsernameTemplateMapper extends AbstractIdentityProviderMapper
Modifier and Type | Class and Description |
---|---|
static class |
UsernameTemplateMapper.Target |
Modifier and Type | Field and Description |
---|---|
static String[] |
COMPATIBLE_PROVIDERS |
static String |
PROVIDER_ID |
static String |
TARGET |
static List<String> |
TARGETS |
static String |
TEMPLATE |
static Map<String,UnaryOperator<String>> |
TRANSFORMERS |
ANY_PROVIDER, DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES
Constructor and Description |
---|
UsernameTemplateMapper() |
Modifier and Type | Method and Description |
---|---|
String[] |
getCompatibleProviders() |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
static String |
getEmailLocalPart(String email) |
String |
getHelpText() |
String |
getId() |
static UsernameTemplateMapper.Target |
getTarget(String value) |
void |
preprocessFederatedIdentity(KeycloakSession session,
RealmModel realm,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context) |
boolean |
supportsSyncMode(IdentityProviderSyncMode syncMode) |
void |
updateBrokeredUser(KeycloakSession session,
RealmModel realm,
UserModel user,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context) |
void |
updateBrokeredUserLegacy(KeycloakSession session,
RealmModel realm,
UserModel user,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context) |
close, create, importNewUser, init, postInit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public static final String[] COMPATIBLE_PROVIDERS
public static final String TEMPLATE
public static final String TARGET
public static final Map<String,UnaryOperator<String>> TRANSFORMERS
public static final String PROVIDER_ID
public boolean supportsSyncMode(IdentityProviderSyncMode syncMode)
public List<ProviderConfigProperty> getConfigProperties()
public String getId()
public String[] getCompatibleProviders()
public String getDisplayCategory()
public String getDisplayType()
public void updateBrokeredUserLegacy(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
updateBrokeredUserLegacy
in interface IdentityProviderMapper
updateBrokeredUserLegacy
in class AbstractIdentityProviderMapper
public void updateBrokeredUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
updateBrokeredUser
in interface IdentityProviderMapper
updateBrokeredUser
in class AbstractIdentityProviderMapper
public void preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
preprocessFederatedIdentity
in interface IdentityProviderMapper
preprocessFederatedIdentity
in class AbstractIdentityProviderMapper
public String getHelpText()
public static UsernameTemplateMapper.Target getTarget(String value)
Copyright © 2021 JBoss by Red Hat. All rights reserved.