Interface OAuth2AuthenticationContext
- All Superinterfaces:
Context
- All Known Implementing Classes:
OAuth2AccessTokenAuthenticationContext, OAuth2AuthorizationCodeRequestAuthenticationContext, OAuth2AuthorizationConsentAuthenticationContext, OAuth2ClientAuthenticationContext, OAuth2ClientCredentialsAuthenticationContext, OAuth2ClientRegistrationAuthenticationContext, OAuth2DeviceVerificationAuthenticationContext, OidcClientRegistrationAuthenticationContext, OidcLogoutAuthenticationContext, OidcUserInfoAuthenticationContext
A context that holds an
Authentication and (optionally) additional information
and is used in an AuthenticationProvider.- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classOAuth2AuthenticationContext.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 theAuthenticationassociated to the context.
-
Method Details
-
getAuthentication
default <T extends org.springframework.security.core.Authentication> T getAuthentication()Returns theAuthenticationassociated to the context.- Type Parameters:
T- the type of theAuthentication- Returns:
- the
Authentication
-