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 SummaryConstructors Constructor Description RestartLoginCookie()RestartLoginCookie(AuthenticationSessionModel authSession)
 - 
Method SummaryAll 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_RESTARTpublic static final String KC_RESTART - See Also:
- Constant Field Values
 
 - 
clientIdprotected String clientId 
 - 
authMethodprotected String authMethod 
 - 
redirectUriprotected String redirectUri 
 - 
actionprotected String action 
 - 
cs@Deprecated protected String cs Deprecated.
 
- 
 - 
Constructor Detail- 
RestartLoginCookiepublic RestartLoginCookie() 
 - 
RestartLoginCookiepublic RestartLoginCookie(AuthenticationSessionModel authSession) 
 
- 
 - 
Method Detail- 
getClientIdpublic String getClientId() 
 - 
setClientIdpublic void setClientId(String clientId) 
 - 
getAuthMethodpublic String getAuthMethod() 
 - 
setAuthMethodpublic void setAuthMethod(String authMethod) 
 - 
getRedirectUripublic String getRedirectUri() 
 - 
setRedirectUripublic void setRedirectUri(String redirectUri) 
 - 
getActionpublic String getAction() 
 - 
setActionpublic void setAction(String action) 
 - 
setRestartCookiepublic static void setRestartCookie(KeycloakSession session, RealmModel realm, ClientConnection connection, javax.ws.rs.core.UriInfo uriInfo, AuthenticationSessionModel authSession) 
 - 
expireRestartCookiepublic static void expireRestartCookie(RealmModel realm, javax.ws.rs.core.UriInfo uriInfo, KeycloakSession session) 
 - 
getRestartCookiepublic static javax.ws.rs.core.Cookie getRestartCookie(KeycloakSession session) 
 - 
restartSessionpublic static AuthenticationSessionModel restartSession(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootSession, String expectedClientId, javax.ws.rs.core.Cookie cook) throws Exception - Throws:
- Exception
 
 - 
getCategorypublic TokenCategory getCategory() - Specified by:
- getCategoryin interface- Token
 
 
- 
 
-