Package org.keycloak.services.managers
Class ClientSessionCode<CLIENT_SESSION extends CommonClientSessionModel>
- java.lang.Object
-
- org.keycloak.services.managers.ClientSessionCode<CLIENT_SESSION>
-
public class ClientSessionCode<CLIENT_SESSION extends CommonClientSessionModel> extends Object
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientSessionCode.ActionType
static class
ClientSessionCode.ParseResult<CLIENT_SESSION extends CommonClientSessionModel>
-
Constructor Summary
Constructors Constructor Description ClientSessionCode(KeycloakSession session, RealmModel realm, CLIENT_SESSION commonLoginSession)
-
Method Summary
-
-
-
Constructor Detail
-
ClientSessionCode
public ClientSessionCode(KeycloakSession session, RealmModel realm, CLIENT_SESSION commonLoginSession)
-
-
Method Detail
-
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
public CLIENT_SESSION getClientSession()
-
isValid
public boolean isValid(String requestedAction, ClientSessionCode.ActionType actionType)
-
isActionActive
public boolean isActionActive(ClientSessionCode.ActionType actionType)
-
isValidAction
public boolean isValidAction(String requestedAction)
-
removeExpiredClientSession
public void removeExpiredClientSession()
-
setAction
public void setAction(String action)
-
getOrGenerateCode
public String getOrGenerateCode()
-
-