Class OAuth2PushedAuthorizationRequestEndpointConfigurer

java.lang.Object
org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2PushedAuthorizationRequestEndpointConfigurer

public final class OAuth2PushedAuthorizationRequestEndpointConfigurer extends Object
Configurer for the OAuth 2.0 Pushed Authorization Request Endpoint.
Since:
7.0
See Also:
  • Method Details

    • pushedAuthorizationRequestConverter

      public OAuth2PushedAuthorizationRequestEndpointConfigurer pushedAuthorizationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter pushedAuthorizationRequestConverter)
      Adds an AuthenticationConverter used when attempting to extract a Pushed Authorization Request from HttpServletRequest to an instance of OAuth2PushedAuthorizationRequestAuthenticationToken used for authenticating the request.
      Parameters:
      pushedAuthorizationRequestConverter - an AuthenticationConverter used when attempting to extract a Pushed Authorization Request from HttpServletRequest
      Returns:
      the OAuth2PushedAuthorizationRequestEndpointConfigurer for further configuration
    • pushedAuthorizationRequestConverters

      public OAuth2PushedAuthorizationRequestEndpointConfigurer pushedAuthorizationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> pushedAuthorizationRequestConvertersConsumer)
      Sets the Consumer providing access to the List of default and (optionally) added AuthenticationConverter's allowing the ability to add, remove, or customize a specific AuthenticationConverter.
      Parameters:
      pushedAuthorizationRequestConvertersConsumer - the Consumer providing access to the List of default and (optionally) added AuthenticationConverter's
      Returns:
      the OAuth2PushedAuthorizationRequestEndpointConfigurer for further configuration
    • authenticationProvider

      public OAuth2PushedAuthorizationRequestEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
      Adds an AuthenticationProvider used for authenticating an OAuth2PushedAuthorizationRequestAuthenticationToken.
      Parameters:
      authenticationProvider - an AuthenticationProvider used for authenticating an OAuth2PushedAuthorizationRequestAuthenticationToken
      Returns:
      the OAuth2PushedAuthorizationRequestEndpointConfigurer for further configuration
    • authenticationProviders

      public OAuth2PushedAuthorizationRequestEndpointConfigurer authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer)
      Sets the Consumer providing access to the List of default and (optionally) added AuthenticationProvider's allowing the ability to add, remove, or customize a specific AuthenticationProvider.
      Parameters:
      authenticationProvidersConsumer - the Consumer providing access to the List of default and (optionally) added AuthenticationProvider's
      Returns:
      the OAuth2PushedAuthorizationRequestEndpointConfigurer for further configuration
    • pushedAuthorizationResponseHandler

      public OAuth2PushedAuthorizationRequestEndpointConfigurer pushedAuthorizationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler pushedAuthorizationResponseHandler)
      Sets the AuthenticationSuccessHandler used for handling an OAuth2PushedAuthorizationRequestAuthenticationToken and returning the Pushed Authorization Response.
      Parameters:
      pushedAuthorizationResponseHandler - the AuthenticationSuccessHandler used for handling an OAuth2PushedAuthorizationRequestAuthenticationToken
      Returns:
      the OAuth2PushedAuthorizationRequestEndpointConfigurer for further configuration
    • errorResponseHandler

      public OAuth2PushedAuthorizationRequestEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler)
      Sets the AuthenticationFailureHandler used for handling an OAuth2AuthorizationCodeRequestAuthenticationException and returning the Error Response.
      Parameters:
      errorResponseHandler - the AuthenticationFailureHandler used for handling an OAuth2AuthorizationCodeRequestAuthenticationException
      Returns:
      the OAuth2PushedAuthorizationRequestEndpointConfigurer for further configuration
    • postProcess

      protected final <T> T postProcess(T object)
    • getObjectPostProcessor

      protected final ObjectPostProcessor<Object> getObjectPostProcessor()