Class AuthorizeRestMethodDecorator

java.lang.Object
net.officefloor.spring.starter.rest.security.AuthorizeRestMethodDecorator
All Implemented Interfaces:
RestMethodDecorator<Void>

public class AuthorizeRestMethodDecorator extends Object implements 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.