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, tokenStore

    Fields inherited from class org.keycloak.KeycloakSecurityContext

    authorizationContext, idToken, idTokenString, token, tokenString
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    boolean
    Calls JsonWebToken.getIat() instead of removed deprecated getIssuedAt().
    boolean
    isTokenTimeToLiveSufficient(org.keycloak.representations.AccessToken token)
    Calls JsonWebToken.getExp() instead of removed deprecated getExpiration().

    Methods inherited from class org.keycloak.adapters.RefreshableKeycloakSecurityContext

    getDeployment, getIdToken, getIdTokenString, getRefreshToken, getToken, getTokenString, logout, refreshExpiredToken, setAuthorizationContext, setCurrentRequestInfo

    Methods inherited from class org.keycloak.KeycloakSecurityContext

    getAuthorizationContext, getRealm

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()
      Calls JsonWebToken.getIat() instead of removed deprecated getIssuedAt().
      Overrides:
      isActive in class org.keycloak.adapters.RefreshableKeycloakSecurityContext
    • isTokenTimeToLiveSufficient

      public boolean isTokenTimeToLiveSufficient(org.keycloak.representations.AccessToken token)
      Calls JsonWebToken.getExp() instead of removed deprecated getExpiration().
      Overrides:
      isTokenTimeToLiveSufficient in class org.keycloak.adapters.RefreshableKeycloakSecurityContext