Package org.keycloak.services.resources
Class SessionCodeChecks
- java.lang.Object
 - 
- org.keycloak.services.resources.SessionCodeChecks
 
 
- 
- Direct Known Subclasses:
 LogoutSessionCodeChecks
public class SessionCodeChecks extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description SessionCodeChecks(RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, HttpRequest request, ClientConnection clientConnection, KeycloakSession session, EventBuilder event, String authSessionId, String code, String execution, String clientId, String tabId, String flowPath) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckClientDisabled(ClientModel client)AuthenticationSessionModelgetAuthenticationSession()ClientSessionCode<AuthenticationSessionModel>getClientCode()protected EventBuildergetEvent()javax.ws.rs.core.ResponsegetResponse()protected KeycloakSessiongetSession()booleaninitialVerify()AuthenticationSessionModelinitialVerifyAuthSession()protected booleanisActionActive(ClientSessionCode.ActionType actionType)booleanisActionRequest()protected javax.ws.rs.core.ResponserestartAuthenticationSessionFromCookie(RootAuthenticationSessionModel existingRootSession)protected voidsetClientToEvent(ClientModel client)booleanverifyActiveAndValidAction(String expectedAction, ClientSessionCode.ActionType actionType)booleanverifyRequiredAction(String executedAction) 
 - 
 
- 
- 
Constructor Detail
- 
SessionCodeChecks
public SessionCodeChecks(RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, HttpRequest request, ClientConnection clientConnection, KeycloakSession session, EventBuilder event, String authSessionId, String code, String execution, String clientId, String tabId, String flowPath)
 
 - 
 
- 
Method Detail
- 
getAuthenticationSession
public AuthenticationSessionModel getAuthenticationSession()
 
- 
getResponse
public javax.ws.rs.core.Response getResponse()
 
- 
getClientCode
public ClientSessionCode<AuthenticationSessionModel> getClientCode()
 
- 
isActionRequest
public boolean isActionRequest()
 
- 
initialVerifyAuthSession
public AuthenticationSessionModel initialVerifyAuthSession()
 
- 
initialVerify
public boolean initialVerify()
 
- 
setClientToEvent
protected void setClientToEvent(ClientModel client)
 
- 
verifyActiveAndValidAction
public boolean verifyActiveAndValidAction(String expectedAction, ClientSessionCode.ActionType actionType)
 
- 
isActionActive
protected boolean isActionActive(ClientSessionCode.ActionType actionType)
 
- 
verifyRequiredAction
public boolean verifyRequiredAction(String executedAction)
 
- 
restartAuthenticationSessionFromCookie
protected javax.ws.rs.core.Response restartAuthenticationSessionFromCookie(RootAuthenticationSessionModel existingRootSession)
 
- 
getSession
protected KeycloakSession getSession()
 
- 
getEvent
protected EventBuilder getEvent()
 
- 
checkClientDisabled
protected boolean checkClientDisabled(ClientModel client)
 
 - 
 
 -