Class ServerHttpSecurity.ExceptionHandlingSpec

java.lang.Object
org.springframework.security.config.web.server.ServerHttpSecurity.ExceptionHandlingSpec
Enclosing class:
ServerHttpSecurity

public final class ServerHttpSecurity.ExceptionHandlingSpec extends Object
Configures exception handling
Since:
5.0
See Also:
  • Method Details

    • authenticationEntryPoint

      public ServerHttpSecurity.ExceptionHandlingSpec authenticationEntryPoint(org.springframework.security.web.server.ServerAuthenticationEntryPoint authenticationEntryPoint)
      Configures what to do when the application request authentication
      Parameters:
      authenticationEntryPoint - the entry point to use
      Returns:
      the ServerHttpSecurity.ExceptionHandlingSpec to configure
    • accessDeniedHandler

      public ServerHttpSecurity.ExceptionHandlingSpec accessDeniedHandler(org.springframework.security.web.server.authorization.ServerAccessDeniedHandler accessDeniedHandler)
      Configures what to do when an authenticated user does not hold a required authority
      Parameters:
      accessDeniedHandler - the access denied handler to use
      Returns:
      the ServerHttpSecurity.ExceptionHandlingSpec to configure
      Since:
      5.0.5