public class JettyCookieTokenStore extends Object implements AdapterTokenStore
| Constructor and Description |
|---|
JettyCookieTokenStore(org.eclipse.jetty.server.Request request,
HttpFacade facade,
KeycloakDeployment deployment) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCurrentToken() |
protected KeycloakPrincipal<RefreshableKeycloakSecurityContext> |
checkPrincipalFromCookie()
Verify if we already have authenticated and active principal in cookie.
|
boolean |
isCached(RequestAuthenticator authenticator) |
void |
logout() |
void |
refreshCallback(RefreshableKeycloakSecurityContext secContext) |
boolean |
restoreRequest() |
void |
saveAccountInfo(KeycloakAccount account) |
void |
saveRequest() |
public JettyCookieTokenStore(org.eclipse.jetty.server.Request request,
HttpFacade facade,
KeycloakDeployment deployment)
public void checkCurrentToken()
checkCurrentToken in interface AdapterTokenStorepublic boolean isCached(RequestAuthenticator authenticator)
isCached in interface AdapterTokenStorepublic void saveAccountInfo(KeycloakAccount account)
saveAccountInfo in interface AdapterTokenStorepublic void logout()
logout in interface AdapterTokenStorepublic void refreshCallback(RefreshableKeycloakSecurityContext secContext)
refreshCallback in interface AdapterTokenStoreprotected KeycloakPrincipal<RefreshableKeycloakSecurityContext> checkPrincipalFromCookie()
public void saveRequest()
saveRequest in interface AdapterTokenStorepublic boolean restoreRequest()
restoreRequest in interface AdapterTokenStoreCopyright © 2015 JBoss by Red Hat. All rights reserved.