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
(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session) getNotes()
static jakarta.ws.rs.core.Cookie
getRestartCookie
(KeycloakSession session) static AuthenticationSessionModel
restartSession
(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootSession, String expectedClientId, jakarta.ws.rs.core.Cookie cook) void
void
setAuthMethod
(String authMethod) void
setClientId
(String clientId) void
void
setRedirectUri
(String redirectUri) static void
setRestartCookie
(KeycloakSession session, RealmModel realm, ClientConnection connection, jakarta.ws.rs.core.UriInfo uriInfo, 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, RealmModel realm, ClientConnection connection, jakarta.ws.rs.core.UriInfo uriInfo, AuthenticationSessionModel authSession) -
expireRestartCookie
public static void expireRestartCookie(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session) -
getRestartCookie
-
restartSession
public static AuthenticationSessionModel restartSession(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootSession, String expectedClientId, jakarta.ws.rs.core.Cookie cook) throws Exception - Throws:
Exception
-
getCategory
- Specified by:
getCategory
in interfaceToken
-