Class RefreshableKeycloakSecurityContext
java.lang.Object
org.keycloak.KeycloakSecurityContext
org.keycloak.adapters.RefreshableKeycloakSecurityContext
org.nuxeo.ecm.platform.ui.web.keycloak.RefreshableKeycloakSecurityContext
- All Implemented Interfaces:
Serializable
public class RefreshableKeycloakSecurityContext
extends org.keycloak.adapters.RefreshableKeycloakSecurityContext
Extends
RefreshableKeycloakSecurityContext to allow overriding methods calling removed
deprecated APIs.- Since:
- 2025.12
- See Also:
-
Field Summary
Fields inherited from class org.keycloak.adapters.RefreshableKeycloakSecurityContext
deployment, log, refreshToken, tokenStoreFields inherited from class org.keycloak.KeycloakSecurityContext
authorizationContext, idToken, idTokenString, token, tokenString -
Constructor Summary
ConstructorsConstructorDescriptionRefreshableKeycloakSecurityContext(org.keycloak.adapters.KeycloakDeployment deployment, org.keycloak.adapters.AdapterTokenStore tokenStore, String tokenString, org.keycloak.representations.AccessToken token, String idTokenString, org.keycloak.representations.IDToken idToken, String refreshToken) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()CallsJsonWebToken.getIat()instead of removed deprecatedgetIssuedAt().booleanisTokenTimeToLiveSufficient(org.keycloak.representations.AccessToken token) CallsJsonWebToken.getExp()instead of removed deprecatedgetExpiration().Methods inherited from class org.keycloak.adapters.RefreshableKeycloakSecurityContext
getDeployment, getIdToken, getIdTokenString, getRefreshToken, getToken, getTokenString, logout, refreshExpiredToken, setAuthorizationContext, setCurrentRequestInfoMethods inherited from class org.keycloak.KeycloakSecurityContext
getAuthorizationContext, getRealm
-
Constructor Details
-
RefreshableKeycloakSecurityContext
public RefreshableKeycloakSecurityContext(org.keycloak.adapters.KeycloakDeployment deployment, org.keycloak.adapters.AdapterTokenStore tokenStore, String tokenString, org.keycloak.representations.AccessToken token, String idTokenString, org.keycloak.representations.IDToken idToken, String refreshToken)
-
-
Method Details
-
isActive
public boolean isActive()CallsJsonWebToken.getIat()instead of removed deprecatedgetIssuedAt().- Overrides:
isActivein classorg.keycloak.adapters.RefreshableKeycloakSecurityContext
-
isTokenTimeToLiveSufficient
public boolean isTokenTimeToLiveSufficient(org.keycloak.representations.AccessToken token) CallsJsonWebToken.getExp()instead of removed deprecatedgetExpiration().- Overrides:
isTokenTimeToLiveSufficientin classorg.keycloak.adapters.RefreshableKeycloakSecurityContext
-