Class DenyAllGuard
RestGuard — rejects every request with 403 Forbidden.
Used as the secure-by-default placeholder on operations or resources that require an
authentication / authorization chain the importer must explicitly opt into. Without the
importer's override, every request is denied; once a user-supplied
@Bean RestGuardList is registered on the
resource, the framework's bean-store override seam replaces the entire
annotation-derived guard list (including this deny-all) with the user-supplied chain —
see the RestOpContext.guards memoizer for the full lookup contract.
Composition example:
See Also:
- Since:
- 10.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrue if the specified request can pass through this guard.
-
Constructor Details
-
DenyAllGuard
public DenyAllGuard()
-
-
Method Details
-
isRequestAllowed
Description copied from class:RestGuardReturnstrue if the specified request can pass through this guard.- Specified by:
isRequestAllowedin classRestGuard- Parameters:
req- The servlet request.- Returns:
true if the specified request can pass through this guard.
-