Package org.keycloak

Class KeycloakSecurityContext

java.lang.Object
org.keycloak.KeycloakSecurityContext
All Implemented Interfaces:
Serializable

public class KeycloakSecurityContext extends Object implements Serializable
Available in secured requests under HttpServletRequest.getAttribute() Also available in HttpSession.getAttribute under the classname of this class
Version:
$Revision: 1 $
Author:
Bill Burke
See Also:
  • Field Details

    • tokenString

      protected String tokenString
    • idTokenString

      protected String idTokenString
    • token

      protected transient AccessToken token
    • idToken

      protected transient IDToken idToken
    • authorizationContext

      protected transient AuthorizationContext authorizationContext
  • Constructor Details

    • KeycloakSecurityContext

      public KeycloakSecurityContext()
    • KeycloakSecurityContext

      public KeycloakSecurityContext(String tokenString, AccessToken token, String idTokenString, IDToken idToken)
  • Method Details

    • getToken

      public AccessToken getToken()
    • getTokenString

      public String getTokenString()
    • getAuthorizationContext

      public AuthorizationContext getAuthorizationContext()
    • getIdToken

      public IDToken getIdToken()
    • getIdTokenString

      public String getIdTokenString()
    • getRealm

      public String getRealm()