Package org.keycloak.authentication
Interface FormContext
- All Known Subinterfaces:
ValidationContext
public interface FormContext
Interface that encapsulates the current state of the current form being executed
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptionorg.keycloak.sessions.AuthenticationSessionModelAuthenticationSessionModel attached to this floworg.keycloak.models.AuthenticatorConfigModelGet any configuration associated with the current executionorg.keycloak.common.ClientConnectionInformation about the IP address from the connecting HTTP client.getEvent()Current event builder being usedorg.keycloak.models.AuthenticationExecutionModelThe current execution in the floworg.keycloak.http.HttpRequestorg.keycloak.models.RealmModelgetRealm()Current realmorg.keycloak.models.KeycloakSessionCurrent sessionjakarta.ws.rs.core.UriInfoUriInfo of the current requestorg.keycloak.models.UserModelgetUser()Current user attached to this flow.newEvent()Create a refresh new EventBuilder to use within this contextvoidsetUser(org.keycloak.models.UserModel user) Attach a specific user to this flow.
-
Method Details
-
getEvent
EventBuilder getEvent()Current event builder being used- Returns:
-
newEvent
EventBuilder newEvent()Create a refresh new EventBuilder to use within this context- Returns:
-
getExecution
org.keycloak.models.AuthenticationExecutionModel getExecution()The current execution in the flow- Returns:
-
getUser
org.keycloak.models.UserModel getUser()Current user attached to this flow. It can return null if no user has been identified yet- Returns:
-
setUser
void setUser(org.keycloak.models.UserModel user) Attach a specific user to this flow.- Parameters:
user-
-
getRealm
org.keycloak.models.RealmModel getRealm()Current realm- Returns:
-
getAuthenticationSession
org.keycloak.sessions.AuthenticationSessionModel getAuthenticationSession()AuthenticationSessionModel attached to this flow- Returns:
-
getConnection
org.keycloak.common.ClientConnection getConnection()Information about the IP address from the connecting HTTP client.- Returns:
-
getUriInfo
jakarta.ws.rs.core.UriInfo getUriInfo()UriInfo of the current request- Returns:
-
getSession
org.keycloak.models.KeycloakSession getSession()Current session- Returns:
-
getHttpRequest
org.keycloak.http.HttpRequest getHttpRequest() -
getAuthenticatorConfig
org.keycloak.models.AuthenticatorConfigModel getAuthenticatorConfig()Get any configuration associated with the current execution- Returns:
-