Class DelegatingMissingAuthorityAccessDeniedHandler.Builder
java.lang.Object
org.springframework.security.web.access.DelegatingMissingAuthorityAccessDeniedHandler.Builder
- Enclosing class:
- DelegatingMissingAuthorityAccessDeniedHandler
A builder for configuring the set of authority/entry-point pairs
- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionaddEntryPointFor
(Consumer<DelegatingAuthenticationEntryPoint.Builder> entryPoint, String missingAuthority) Use thisAuthenticationEntryPoint
when the givenmissingAuthority
is missing from the authenticated useraddEntryPointFor
(AuthenticationEntryPoint entryPoint, String missingAuthority) Use thisAuthenticationEntryPoint
when the givenmissingAuthority
is missing from the authenticated userbuild()
-
Method Details
-
addEntryPointFor
public DelegatingMissingAuthorityAccessDeniedHandler.Builder addEntryPointFor(AuthenticationEntryPoint entryPoint, String missingAuthority) Use thisAuthenticationEntryPoint
when the givenmissingAuthority
is missing from the authenticated user- Parameters:
entryPoint
- theAuthenticationEntryPoint
for the given authoritymissingAuthority
- the authority- Returns:
- the
DelegatingMissingAuthorityAccessDeniedHandler.Builder
for further configurations
-
addEntryPointFor
public DelegatingMissingAuthorityAccessDeniedHandler.Builder addEntryPointFor(Consumer<DelegatingAuthenticationEntryPoint.Builder> entryPoint, String missingAuthority) Use thisAuthenticationEntryPoint
when the givenmissingAuthority
is missing from the authenticated user- Parameters:
entryPoint
- a consumer to configure the underlyingDelegatingAuthenticationEntryPoint
missingAuthority
- the authority- Returns:
- the
DelegatingMissingAuthorityAccessDeniedHandler.Builder
for further configurations
-
build
-