Annotation Interface HandleAuthorizationDenied
@Target({METHOD,TYPE})
@Retention(RUNTIME)
@Inherited
@Documented
public @interface HandleAuthorizationDenied
Annotation for specifying handling behavior when an authorization denied happens in
method security or an
AuthorizationDeniedException
is
thrown during method invocation- Since:
- 6.3
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<? extends MethodAuthorizationDeniedHandler>
TheMethodAuthorizationDeniedHandler
used to handle denied authorization results
-
Element Details
-
handlerClass
Class<? extends MethodAuthorizationDeniedHandler> handlerClassTheMethodAuthorizationDeniedHandler
used to handle denied authorization results- Returns:
- Default:
- org.springframework.security.authorization.method.ThrowingMethodAuthorizationDeniedHandler.class
-