Package org.keycloak.protocol
Class RestartLoginCookie
java.lang.Object
org.keycloak.protocol.RestartLoginCookie
- All Implemented Interfaces:
Token
This is an an encoded token that is stored as a cookie so that if there is a client timeout, then the authentication session
can be restarted.
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
expireRestartCookie
(KeycloakSession session) getNotes()
static String
getRestartCookie
(KeycloakSession session) static AuthenticationSessionModel
restartSession
(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootSession, String expectedClientId, String encodedCookie) void
void
setAuthMethod
(String authMethod) void
setClientId
(String clientId) void
void
setRedirectUri
(String redirectUri) static void
setRestartCookie
(KeycloakSession session, AuthenticationSessionModel authSession)
-
Field Details
-
KC_RESTART
- See Also:
-
clientId
-
authMethod
-
redirectUri
-
action
-
notes
-
cs
Deprecated.
-
-
Constructor Details
-
RestartLoginCookie
public RestartLoginCookie() -
RestartLoginCookie
-
-
Method Details
-
getNotes
-
setNotes
-
getClientId
-
setClientId
-
getAuthMethod
-
setAuthMethod
-
getRedirectUri
-
setRedirectUri
-
getAction
-
setAction
-
setRestartCookie
public static void setRestartCookie(KeycloakSession session, AuthenticationSessionModel authSession) -
expireRestartCookie
-
getRestartCookie
-
restartSession
public static AuthenticationSessionModel restartSession(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootSession, String expectedClientId, String encodedCookie) throws Exception - Throws:
Exception
-
getCategory
- Specified by:
getCategory
in interfaceToken
-