public class CatalinaCookieTokenStore extends Object implements AdapterTokenStore
Constructor and Description |
---|
CatalinaCookieTokenStore(org.apache.catalina.connector.Request request,
HttpFacade facade,
KeycloakDeployment deployment,
GenericPrincipalFactory principalFactory) |
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(OidcKeycloakAccount account) |
void |
saveRequest() |
public CatalinaCookieTokenStore(org.apache.catalina.connector.Request request, HttpFacade facade, KeycloakDeployment deployment, GenericPrincipalFactory principalFactory)
public void checkCurrentToken()
checkCurrentToken
in interface AdapterTokenStore
public boolean isCached(RequestAuthenticator authenticator)
isCached
in interface AdapterTokenStore
public void saveAccountInfo(OidcKeycloakAccount account)
saveAccountInfo
in interface AdapterTokenStore
public void logout()
logout
in interface AdapterTokenStore
public void refreshCallback(RefreshableKeycloakSecurityContext secContext)
refreshCallback
in interface AdapterTokenStore
public void saveRequest()
saveRequest
in interface AdapterSessionStore
public boolean restoreRequest()
restoreRequest
in interface AdapterSessionStore
protected KeycloakPrincipal<RefreshableKeycloakSecurityContext> checkPrincipalFromCookie()
Copyright © 2019 JBoss by Red Hat. All rights reserved.