Interface Context
- All Known Subinterfaces:
OAuth2AuthenticationContext, OAuth2TokenContext
- All Known Implementing Classes:
DefaultOAuth2TokenContext, JwtEncodingContext, OAuth2AccessTokenAuthenticationContext, OAuth2AuthorizationCodeRequestAuthenticationContext, OAuth2AuthorizationConsentAuthenticationContext, OAuth2ClientAuthenticationContext, OAuth2ClientCredentialsAuthenticationContext, OAuth2ClientRegistrationAuthenticationContext, OAuth2DeviceVerificationAuthenticationContext, OAuth2TokenClaimsContext, OidcClientRegistrationAuthenticationContext, OidcLogoutAuthenticationContext, OidcUserInfoAuthenticationContext
public interface Context
A facility for holding information associated to a specific context.
- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> @Nullable VReturns the value of the attribute associated to the key.<V> @Nullable 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
-