methodSecurityAdvisorOrder top-level constant

int const methodSecurityAdvisorOrder

The position of method security among the advice wrapped around a bean method: before every other advice.

So @Cacheable, @Validated and the application's own aspects run only for an authorized call, and a cached result is never returned to someone who may not call the method. An aspect that must run before the security check needs a lower order than this value.

Spring (Java): AuthorizationInterceptorsOrder.FIRST + 100.

Implementation

const int methodSecurityAdvisorOrder = Ordered.highestPrecedence + 100;