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> VReturns the value of the attribute associated to the key.<V> VReturns the value of the attribute associated to the key.booleanReturnstrueif an attribute associated to the key exists,falseotherwise.
-
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
nullif 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
nullif not available or not of the specified type
-
hasKey
Returnstrueif an attribute associated to the key exists,falseotherwise.- Parameters:
key- the key for the attribute- Returns:
trueif an attribute associated to the key exists,falseotherwise
-