Package org.keycloak.services.managers
Class ClientSessionCode<CLIENT_SESSION extends CommonClientSessionModel>
java.lang.Object
org.keycloak.services.managers.ClientSessionCode<CLIENT_SESSION>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
-
Constructor Summary
ConstructorDescriptionClientSessionCode
(KeycloakSession session, RealmModel realm, CLIENT_SESSION commonLoginSession) -
Method Summary
Modifier and TypeMethodDescriptionstatic <CLIENT_SESSION extends CommonClientSessionModel>
CLIENT_SESSIONgetClientSession
(String code, String tabId, KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, Class<CLIENT_SESSION> sessionClass) boolean
isActionActive
(ClientSessionCode.ActionType actionType) boolean
isValid
(String requestedAction, ClientSessionCode.ActionType actionType) boolean
isValidAction
(String requestedAction) static <CLIENT_SESSION extends CommonClientSessionModel>
ClientSessionCode.ParseResult<CLIENT_SESSION>parseResult
(String code, String tabId, KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, CLIENT_SESSION clientSession) static <CLIENT_SESSION extends CommonClientSessionModel>
ClientSessionCode.ParseResult<CLIENT_SESSION>parseResult
(String code, String tabId, KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, Class<CLIENT_SESSION> sessionClass) void
void
-
Constructor Details
-
ClientSessionCode
public ClientSessionCode(KeycloakSession session, RealmModel realm, CLIENT_SESSION commonLoginSession)
-
-
Method Details
-
parseResult
public static <CLIENT_SESSION extends CommonClientSessionModel> ClientSessionCode.ParseResult<CLIENT_SESSION> parseResult(String code, String tabId, KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, Class<CLIENT_SESSION> sessionClass) -
parseResult
public static <CLIENT_SESSION extends CommonClientSessionModel> ClientSessionCode.ParseResult<CLIENT_SESSION> parseResult(String code, String tabId, KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, CLIENT_SESSION clientSession) -
getClientSession
public static <CLIENT_SESSION extends CommonClientSessionModel> CLIENT_SESSION getClientSession(String code, String tabId, KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, Class<CLIENT_SESSION> sessionClass) -
getClientSession
-
isValid
-
isActionActive
-
isValidAction
-
removeExpiredClientSession
public void removeExpiredClientSession() -
setAction
-
getOrGenerateCode
-