Package org.keycloak.authentication
Interface FormContext
- 
- All Known Subinterfaces:
- ValidationContext
 
 public interface FormContextInterface that encapsulates the current state of the current form being executed- Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthenticationSessionModelgetAuthenticationSession()AuthenticationSessionModel attached to this flowAuthenticatorConfigModelgetAuthenticatorConfig()Get any configuration associated with the current executionClientConnectiongetConnection()Information about the IP address from the connecting HTTP client.EventBuildergetEvent()Current event builder being usedAuthenticationExecutionModelgetExecution()The current execution in the flowHttpRequestgetHttpRequest()RealmModelgetRealm()Current realmKeycloakSessiongetSession()Current sessionjavax.ws.rs.core.UriInfogetUriInfo()UriInfo of the current requestUserModelgetUser()Current user attached to this flow.EventBuildernewEvent()Create a refresh new EventBuilder to use within this contextvoidsetUser(UserModel user)Attach a specific user to this flow.
 
- 
- 
- 
Method Detail- 
getEventEventBuilder getEvent() Current event builder being used- Returns:
 
 - 
newEventEventBuilder newEvent() Create a refresh new EventBuilder to use within this context- Returns:
 
 - 
getExecutionAuthenticationExecutionModel getExecution() The current execution in the flow- Returns:
 
 - 
getUserUserModel getUser() Current user attached to this flow. It can return null if no uesr has been identified yet- Returns:
 
 - 
setUservoid setUser(UserModel user) Attach a specific user to this flow.- Parameters:
- user-
 
 - 
getRealmRealmModel getRealm() Current realm- Returns:
 
 - 
getAuthenticationSessionAuthenticationSessionModel getAuthenticationSession() AuthenticationSessionModel attached to this flow- Returns:
 
 - 
getConnectionClientConnection getConnection() Information about the IP address from the connecting HTTP client.- Returns:
 
 - 
getUriInfojavax.ws.rs.core.UriInfo getUriInfo() UriInfo of the current request- Returns:
 
 - 
getSessionKeycloakSession getSession() Current session- Returns:
 
 - 
getHttpRequestHttpRequest getHttpRequest() 
 - 
getAuthenticatorConfigAuthenticatorConfigModel getAuthenticatorConfig() Get any configuration associated with the current execution- Returns:
 
 
- 
 
-