ExceptionHandlingDsl

A Kotlin DSL to configure HttpSecurity exception handling using idiomatic Kotlin code.

Author

Eleftheria Stein

Since

5.3

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var accessDeniedHandler: AccessDeniedHandler?

the AccessDeniedHandler to use

Link copied to clipboard

the URL to the access denied page

Link copied to clipboard
var authenticationEntryPoint: AuthenticationEntryPoint?

the AuthenticationEntryPoint to use

Functions

Link copied to clipboard
fun defaultAccessDeniedHandlerFor(deniedHandler: AccessDeniedHandler, preferredMatcher: RequestMatcher)

Sets a default AccessDeniedHandler to be used which prefers being invoked for the provided RequestMatcher.

Link copied to clipboard
fun defaultAuthenticationEntryPointFor(entryPoint: AuthenticationEntryPoint, preferredMatcher: RequestMatcher)

Sets a default AuthenticationEntryPoint to be used which prefers being invoked for the provided RequestMatcher.

Link copied to clipboard
fun disable()

Disable exception handling.