Class AuthorizeRestMethodDecorator
java.lang.Object
net.officefloor.spring.starter.rest.security.AuthorizeRestMethodDecorator
- All Implemented Interfaces:
RestMethodDecorator<Void>
RestMethodDecorator applying YAML-configured SpEL authorization before endpoint execution.
The authorize key is read from the composition: block of an endpoint YAML file,
or from the top-level of a path-config YAML file (inherited by child endpoints).
The most-specific (deepest) configured expression wins.
The SpEL expression is parsed once at startup for syntax validation and compiled for runtime speed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecorateRestMethod(RestMethodDecoratorContext<Void> context) Decorates theRestMethod.
-
Constructor Details
-
AuthorizeRestMethodDecorator
public AuthorizeRestMethodDecorator()
-
-
Method Details
-
decorateRestMethod
Description copied from interface:RestMethodDecoratorDecorates theRestMethod.- Specified by:
decorateRestMethodin interfaceRestMethodDecorator<Void>- Parameters:
context-RestMethodDecoratorContext.
-