Interface OAuth2AuthorizationFailureHandler
- 
- All Known Implementing Classes:
- RemoveAuthorizedClientOAuth2AuthorizationFailureHandler
 - Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
 @FunctionalInterface public interface OAuth2AuthorizationFailureHandlerHandles when an OAuth 2.0 Client fails to authorize (or re-authorize) via the Authorization Server or Resource Server.- Since:
- 5.3
- See Also:
- OAuth2AuthorizedClient,- OAuth2AuthorizedClientManager
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonAuthorizationFailure(OAuth2AuthorizationException authorizationException, Authentication principal, java.util.Map<java.lang.String,java.lang.Object> attributes)Called when an OAuth 2.0 Client fails to authorize (or re-authorize) via the Authorization Server or Resource Server.
 
- 
- 
- 
Method Detail- 
onAuthorizationFailurevoid onAuthorizationFailure(OAuth2AuthorizationException authorizationException, Authentication principal, java.util.Map<java.lang.String,java.lang.Object> attributes) Called when an OAuth 2.0 Client fails to authorize (or re-authorize) via the Authorization Server or Resource Server.- Parameters:
- authorizationException- the exception that contains details about what failed
- principal- the- Principalassociated with the attempted authorization
- attributes- an immutable- Mapof (optional) attributes present under certain conditions. For example, this might contain a- javax.servlet.http.HttpServletRequestand- javax.servlet.http.HttpServletResponseif the authorization was performed within the context of a- javax.servlet.ServletContext.
 
 
- 
 
-