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 thisAuthenticationEntryPointwhen the givenmissingAuthorityis missing from the authenticated useraddEntryPointFor(AuthenticationEntryPoint entryPoint, String missingAuthority) Use thisAuthenticationEntryPointwhen the givenmissingAuthorityis missing from the authenticated userbuild()
-
Method Details
-
addEntryPointFor
public DelegatingMissingAuthorityAccessDeniedHandler.Builder addEntryPointFor(AuthenticationEntryPoint entryPoint, String missingAuthority) Use thisAuthenticationEntryPointwhen the givenmissingAuthorityis missing from the authenticated user- Parameters:
entryPoint- theAuthenticationEntryPointfor the given authoritymissingAuthority- the authority- Returns:
- the
DelegatingMissingAuthorityAccessDeniedHandler.Builderfor further configurations
-
addEntryPointFor
public DelegatingMissingAuthorityAccessDeniedHandler.Builder addEntryPointFor(Consumer<DelegatingAuthenticationEntryPoint.Builder> entryPoint, String missingAuthority) Use thisAuthenticationEntryPointwhen the givenmissingAuthorityis missing from the authenticated user- Parameters:
entryPoint- a consumer to configure the underlyingDelegatingAuthenticationEntryPointmissingAuthority- the authority- Returns:
- the
DelegatingMissingAuthorityAccessDeniedHandler.Builderfor further configurations
-
build
-