Package org.keycloak.protocol
Class RestartLoginCookie
- java.lang.Object
-
- org.keycloak.protocol.RestartLoginCookie
-
- All Implemented Interfaces:
Token
public class RestartLoginCookie extends Object implements 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
-
-
Constructor Summary
Constructors Constructor Description RestartLoginCookie()RestartLoginCookie(AuthenticationSessionModel authSession)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidexpireRestartCookie(RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, KeycloakSession session)StringgetAction()StringgetAuthMethod()TokenCategorygetCategory()StringgetClientId()Map<String,String>getNotes()StringgetRedirectUri()static javax.ws.rs.core.CookiegetRestartCookie(KeycloakSession session)static AuthenticationSessionModelrestartSession(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootSession, String expectedClientId, javax.ws.rs.core.Cookie cook)voidsetAction(String action)voidsetAuthMethod(String authMethod)voidsetClientId(String clientId)voidsetNotes(Map<String,String> notes)voidsetRedirectUri(String redirectUri)static voidsetRestartCookie(KeycloakSession session, RealmModel realm, ClientConnection connection, javax.ws.rs.core.UriInfo uriInfo, AuthenticationSessionModel authSession)
-
-
-
Field Detail
-
KC_RESTART
public static final String KC_RESTART
- See Also:
- Constant Field Values
-
clientId
protected String clientId
-
authMethod
protected String authMethod
-
redirectUri
protected String redirectUri
-
action
protected String action
-
cs
@Deprecated protected String cs
Deprecated.
-
-
Constructor Detail
-
RestartLoginCookie
public RestartLoginCookie()
-
RestartLoginCookie
public RestartLoginCookie(AuthenticationSessionModel authSession)
-
-
Method Detail
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
-
getAuthMethod
public String getAuthMethod()
-
setAuthMethod
public void setAuthMethod(String authMethod)
-
getRedirectUri
public String getRedirectUri()
-
setRedirectUri
public void setRedirectUri(String redirectUri)
-
getAction
public String getAction()
-
setAction
public void setAction(String action)
-
setRestartCookie
public static void setRestartCookie(KeycloakSession session, RealmModel realm, ClientConnection connection, javax.ws.rs.core.UriInfo uriInfo, AuthenticationSessionModel authSession)
-
expireRestartCookie
public static void expireRestartCookie(RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, KeycloakSession session)
-
getRestartCookie
public static javax.ws.rs.core.Cookie getRestartCookie(KeycloakSession session)
-
restartSession
public static AuthenticationSessionModel restartSession(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootSession, String expectedClientId, javax.ws.rs.core.Cookie cook) throws Exception
- Throws:
Exception
-
getCategory
public TokenCategory getCategory()
- Specified by:
getCategoryin interfaceToken
-
-