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 interface
ActionTokenContext.ProcessAuthenticateFlow
static interface
ActionTokenContext.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.Response
brokerFlow(String authSessionId, String code, String flowPath)
AuthenticationSessionModel
createAuthenticationSessionForClient(String clientId)
AuthenticationSessionModel
getAuthenticationSession()
ClientConnection
getClientConnection()
EventBuilder
getEvent()
String
getExecutionId()
ActionTokenHandler<T>
getHandler()
RealmModel
getRealm()
HttpRequest
getRequest()
KeycloakSession
getSession()
javax.ws.rs.core.UriInfo
getUriInfo()
boolean
isAuthenticationSessionFresh()
javax.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 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.UriBuilderException
IllegalArgumentException
-
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)
-
-