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 boolean
checkClientDisabled(ClientModel client)
AuthenticationSessionModel
getAuthenticationSession()
ClientSessionCode<AuthenticationSessionModel>
getClientCode()
protected EventBuilder
getEvent()
javax.ws.rs.core.Response
getResponse()
protected KeycloakSession
getSession()
boolean
initialVerify()
AuthenticationSessionModel
initialVerifyAuthSession()
protected boolean
isActionActive(ClientSessionCode.ActionType actionType)
boolean
isActionRequest()
protected javax.ws.rs.core.Response
restartAuthenticationSessionFromCookie(RootAuthenticationSessionModel existingRootSession)
protected void
setClientToEvent(ClientModel client)
boolean
verifyActiveAndValidAction(String expectedAction, ClientSessionCode.ActionType actionType)
boolean
verifyRequiredAction(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)
-
-