Interface OAuth2AuthenticationContext
- All Superinterfaces:
Context
- All Known Implementing Classes:
OAuth2AccessTokenAuthenticationContext
,OAuth2AuthorizationCodeRequestAuthenticationContext
,OAuth2AuthorizationConsentAuthenticationContext
,OAuth2ClientAuthenticationContext
,OAuth2ClientCredentialsAuthenticationContext
,OidcUserInfoAuthenticationContext
A context that holds an
Authentication
and (optionally) additional information
and is used in an AuthenticationProvider
.- Since:
- 0.2.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
OAuth2AuthenticationContext.AbstractBuilder<T extends OAuth2AuthenticationContext,
B extends OAuth2AuthenticationContext.AbstractBuilder<T, B>> A builder for subclasses ofOAuth2AuthenticationContext
. -
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends org.springframework.security.core.Authentication>
TReturns theAuthentication
associated to the context.
-
Method Details
-
getAuthentication
default <T extends org.springframework.security.core.Authentication> T getAuthentication()Returns theAuthentication
associated to the context.- Type Parameters:
T
- the type of theAuthentication
- Returns:
- the
Authentication
-