All Known Subinterfaces:
OAuth2AuthenticationContext, OAuth2TokenContext
All Known Implementing Classes:
DefaultOAuth2TokenContext, JwtEncodingContext, OAuth2AuthorizationCodeRequestAuthenticationContext, OAuth2AuthorizationConsentAuthenticationContext, OAuth2TokenClaimsContext, OidcUserInfoAuthenticationContext

public interface Context
A facility for holding information associated to a specific context.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> V
    get(Class<V> key)
    Returns the value of the attribute associated to the key.
    <V> V
    get(Object key)
    Returns the value of the attribute associated to the key.
    boolean
    Returns true if an attribute associated to the key exists, false otherwise.
  • Method Details

    • get

      @Nullable <V> V get(Object key)
      Returns the value of the attribute associated to the key.
      Type Parameters:
      V - the type of the value for the attribute
      Parameters:
      key - the key for the attribute
      Returns:
      the value of the attribute associated to the key, or null if not available
    • get

      @Nullable default <V> V get(Class<V> key)
      Returns the value of the attribute associated to the key.
      Type Parameters:
      V - the type of the value for the attribute
      Parameters:
      key - the key for the attribute
      Returns:
      the value of the attribute associated to the key, or null if not available or not of the specified type
    • hasKey

      boolean hasKey(Object key)
      Returns true if an attribute associated to the key exists, false otherwise.
      Parameters:
      key - the key for the attribute
      Returns:
      true if an attribute associated to the key exists, false otherwise