Class ActionTokenContext<T extends JsonWebToken>
- java.lang.Object
-
- org.keycloak.authentication.actiontoken.ActionTokenContext<T>
-
public class ActionTokenContext<T extends JsonWebToken> extends Object
- Author:
- hmlnarik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceActionTokenContext.ProcessAuthenticateFlowstatic interfaceActionTokenContext.ProcessBrokerFlow
-
Constructor Summary
Constructors Constructor Description ActionTokenContext(KeycloakSession session, RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, HttpRequest request, EventBuilder event, ActionTokenHandler<T> handler, String executionId, ActionTokenContext.ProcessAuthenticateFlow processFlow, ActionTokenContext.ProcessBrokerFlow processBrokerFlow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsebrokerFlow(String authSessionId, String code, String flowPath)AuthenticationSessionModelcreateAuthenticationSessionForClient(String clientId)AuthenticationSessionModelgetAuthenticationSession()ClientConnectiongetClientConnection()EventBuildergetEvent()StringgetExecutionId()ActionTokenHandler<T>getHandler()RealmModelgetRealm()HttpRequestgetRequest()KeycloakSessiongetSession()javax.ws.rs.core.UriInfogetUriInfo()booleanisAuthenticationSessionFresh()javax.ws.rs.core.ResponseprocessFlow(boolean action, String flowPath, AuthenticationFlowModel flow, String errorMessage, AuthenticationProcessor processor)voidsetAuthenticationSession(AuthenticationSessionModel authenticationSession, boolean isFresh)voidsetEvent(EventBuilder event)voidsetExecutionId(String executionId)
-
-
-
Constructor Detail
-
ActionTokenContext
public ActionTokenContext(KeycloakSession session, RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, HttpRequest request, EventBuilder event, ActionTokenHandler<T> handler, String executionId, ActionTokenContext.ProcessAuthenticateFlow processFlow, ActionTokenContext.ProcessBrokerFlow processBrokerFlow)
-
-
Method Detail
-
getEvent
public EventBuilder getEvent()
-
setEvent
public void setEvent(EventBuilder event)
-
getSession
public KeycloakSession getSession()
-
getRealm
public RealmModel getRealm()
-
getUriInfo
public javax.ws.rs.core.UriInfo getUriInfo()
-
getClientConnection
public ClientConnection getClientConnection()
-
getRequest
public HttpRequest getRequest()
-
createAuthenticationSessionForClient
public AuthenticationSessionModel createAuthenticationSessionForClient(String clientId) throws javax.ws.rs.core.UriBuilderException, IllegalArgumentException
- Throws:
javax.ws.rs.core.UriBuilderExceptionIllegalArgumentException
-
isAuthenticationSessionFresh
public boolean isAuthenticationSessionFresh()
-
getAuthenticationSession
public AuthenticationSessionModel getAuthenticationSession()
-
setAuthenticationSession
public void setAuthenticationSession(AuthenticationSessionModel authenticationSession, boolean isFresh)
-
getHandler
public ActionTokenHandler<T> getHandler()
-
getExecutionId
public String getExecutionId()
-
setExecutionId
public void setExecutionId(String executionId)
-
processFlow
public javax.ws.rs.core.Response processFlow(boolean action, String flowPath, AuthenticationFlowModel flow, String errorMessage, AuthenticationProcessor processor)
-
-