Interface Context
- All Known Subinterfaces:
OAuth2AuthenticationContext
,OAuth2TokenContext
- All Known Implementing Classes:
DefaultOAuth2TokenContext
,JwtEncodingContext
,OAuth2AccessTokenAuthenticationContext
,OAuth2AuthorizationCodeRequestAuthenticationContext
,OAuth2AuthorizationConsentAuthenticationContext
,OAuth2ClientAuthenticationContext
,OAuth2ClientCredentialsAuthenticationContext
,OAuth2TokenClaimsContext
,OidcUserInfoAuthenticationContext
public interface Context
A facility for holding information associated to a specific context.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> V
Returns the value of the attribute associated to the key.<V> V
Returns the value of the attribute associated to the key.boolean
Returnstrue
if an attribute associated to the key exists,false
otherwise.
-
Method Details
-
get
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
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
Returnstrue
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
-