Class UpdateProfile
java.lang.Object
org.keycloak.authentication.requiredactions.UpdateProfile
- All Implemented Interfaces:
- RequiredActionFactory,- RequiredActionProvider,- Provider,- ProviderFactory<RequiredActionProvider>
- Direct Known Subclasses:
- VerifyUserProfile
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create(KeycloakSession session) protected jakarta.ws.rs.core.ResponsecreateResponse(RequiredActionContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData, List<FormMessage> errors) voidevaluateTriggers(RequiredActionContext context) Called every time a user authenticates.Display text used in admin console to reference this required actiongetId()protected UserModel.RequiredActionvoidinit(Config.Scope config) Only called once when the factory is first created.Determines what type of support is provided for application-initiated actions.voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedvoidprocessAction(RequiredActionContext context) Called when a required action has form input you want to process.voidIf the user has a required action set, this method will be the initial call to obtain what to display to the user's browser.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, orderMethods inherited from interface org.keycloak.authentication.RequiredActionFactoryisOneTimeActionMethods inherited from interface org.keycloak.authentication.RequiredActionProvidergetMaxAuthAge, initiatedActionCanceled
- 
Constructor Details- 
UpdateProfilepublic UpdateProfile()
 
- 
- 
Method Details- 
initiatedActionSupportDescription copied from interface:RequiredActionProviderDetermines what type of support is provided for application-initiated actions.- Specified by:
- initiatedActionSupportin interface- RequiredActionProvider
- Returns:
- InititatedActionsSupport
 
- 
evaluateTriggersDescription copied from interface:RequiredActionProviderCalled every time a user authenticates. This checks to see if this required action should be triggered. The implementation of this method is responsible for setting the required action on the UserModel. For example, the UpdatePassword required actions checks the password policies to see if the password has expired.- Specified by:
- evaluateTriggersin interface- RequiredActionProvider
 
- 
requiredActionChallengeDescription copied from interface:RequiredActionProviderIf the user has a required action set, this method will be the initial call to obtain what to display to the user's browser. Return null if no action should be done.- Specified by:
- requiredActionChallengein interface- RequiredActionProvider
 
- 
processActionDescription copied from interface:RequiredActionProviderCalled when a required action has form input you want to process.- Specified by:
- processActionin interface- RequiredActionProvider
 
- 
getResponseAction
- 
createResponseprotected jakarta.ws.rs.core.Response createResponse(RequiredActionContext context, jakarta.ws.rs.core.MultivaluedMap<String, String> formData, List<FormMessage> errors) 
- 
closepublic void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- Provider
- Specified by:
- closein interface- ProviderFactory<RequiredActionProvider>
 
- 
create- Specified by:
- createin interface- ProviderFactory<RequiredActionProvider>
 
- 
initDescription copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory<RequiredActionProvider>
 
- 
postInitDescription copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<RequiredActionProvider>
 
- 
getDisplayTextDescription copied from interface:RequiredActionFactoryDisplay text used in admin console to reference this required action- Specified by:
- getDisplayTextin interface- RequiredActionFactory
- Returns:
 
- 
getId- Specified by:
- getIdin interface- ProviderFactory<RequiredActionProvider>
 
 
-