public class RefreshableKeycloakSecurityContext extends KeycloakSecurityContext
| Modifier and Type | Field and Description |
|---|---|
protected KeycloakDeployment |
deployment |
protected static Logger |
log |
protected String |
refreshToken |
protected AdapterTokenStore |
tokenStore |
authorizationContext, idToken, idTokenString, token, tokenString| Constructor and Description |
|---|
RefreshableKeycloakSecurityContext() |
RefreshableKeycloakSecurityContext(KeycloakDeployment deployment,
AdapterTokenStore tokenStore,
String tokenString,
AccessToken token,
String idTokenString,
IDToken idToken,
String refreshToken) |
| Modifier and Type | Method and Description |
|---|---|
KeycloakDeployment |
getDeployment() |
String |
getRefreshToken() |
AccessToken |
getToken() |
String |
getTokenString() |
boolean |
isActive() |
boolean |
isTokenTimeToLiveSufficient(AccessToken token) |
void |
logout(KeycloakDeployment deployment) |
boolean |
refreshExpiredToken(boolean checkActive) |
void |
setAuthorizationContext(AuthorizationContext authorizationContext) |
void |
setCurrentRequestInfo(KeycloakDeployment deployment,
AdapterTokenStore tokenStore) |
getAuthorizationContext, getIdToken, getIdTokenString, getRealmprotected static Logger log
protected transient KeycloakDeployment deployment
protected transient AdapterTokenStore tokenStore
protected String refreshToken
public RefreshableKeycloakSecurityContext()
public RefreshableKeycloakSecurityContext(KeycloakDeployment deployment, AdapterTokenStore tokenStore, String tokenString, AccessToken token, String idTokenString, IDToken idToken, String refreshToken)
public AccessToken getToken()
getToken in class KeycloakSecurityContextpublic String getTokenString()
getTokenString in class KeycloakSecurityContextpublic String getRefreshToken()
public void logout(KeycloakDeployment deployment)
public boolean isActive()
public boolean isTokenTimeToLiveSufficient(AccessToken token)
public KeycloakDeployment getDeployment()
public void setCurrentRequestInfo(KeycloakDeployment deployment, AdapterTokenStore tokenStore)
public boolean refreshExpiredToken(boolean checkActive)
checkActive - if true, then we won't send refresh request if current accessToken is still active.public void setAuthorizationContext(AuthorizationContext authorizationContext)
Copyright © 2018 JBoss by Red Hat. All rights reserved.