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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexpireRestartCookie(KeycloakSession session) getNotes()static StringgetRestartCookie(KeycloakSession session) static AuthenticationSessionModelrestartSession(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootSession, String expectedClientId, String encodedCookie) voidvoidsetAuthMethod(String authMethod) voidsetClientId(String clientId) voidvoidsetRedirectUri(String redirectUri) static voidsetRestartCookie(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:
getCategoryin interfaceToken
-