Class ActionTokenContext<T extends JsonWebToken>
java.lang.Object
org.keycloak.authentication.actiontoken.ActionTokenContext<T>
- Author:
- hmlnarik
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
ConstructorDescriptionActionTokenContext
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, HttpRequest request, EventBuilder event, ActionTokenHandler<T> handler, String executionId, ActionTokenContext.ProcessAuthenticateFlow processFlow, ActionTokenContext.ProcessBrokerFlow processBrokerFlow) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
brokerFlow
(String authSessionId, String code, String flowPath) createAuthenticationSessionForClient
(String clientId) getEvent()
getRealm()
jakarta.ws.rs.core.UriInfo
boolean
jakarta.ws.rs.core.Response
processFlow
(boolean action, String flowPath, AuthenticationFlowModel flow, String errorMessage, AuthenticationProcessor processor) void
setAuthenticationSession
(AuthenticationSessionModel authenticationSession, boolean isFresh) void
setEvent
(EventBuilder event) void
setExecutionId
(String executionId)
-
Constructor Details
-
ActionTokenContext
public ActionTokenContext(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, HttpRequest request, EventBuilder event, ActionTokenHandler<T> handler, String executionId, ActionTokenContext.ProcessAuthenticateFlow processFlow, ActionTokenContext.ProcessBrokerFlow processBrokerFlow)
-
-
Method Details
-
getEvent
-
setEvent
-
getSession
-
getRealm
-
getUriInfo
public jakarta.ws.rs.core.UriInfo getUriInfo() -
getClientConnection
-
getRequest
-
createAuthenticationSessionForClient
public AuthenticationSessionModel createAuthenticationSessionForClient(String clientId) throws jakarta.ws.rs.core.UriBuilderException, IllegalArgumentException - Throws:
jakarta.ws.rs.core.UriBuilderException
IllegalArgumentException
-
isAuthenticationSessionFresh
public boolean isAuthenticationSessionFresh() -
getAuthenticationSession
-
setAuthenticationSession
public void setAuthenticationSession(AuthenticationSessionModel authenticationSession, boolean isFresh) -
getHandler
-
getExecutionId
-
setExecutionId
-
processFlow
public jakarta.ws.rs.core.Response processFlow(boolean action, String flowPath, AuthenticationFlowModel flow, String errorMessage, AuthenticationProcessor processor) -
brokerFlow
-