Annotation Type Authorization
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface Authorization
Annotation used to apply a specifiedAuthorizationRuleon REST resource Java methods.By default, a resource method only require user to be authenticated. With this annotation, it is possible to restrict access to a REST resource by applying the specified
AuthorizationRule.This annotation is ignored when declared on a REST resource where
AnonymousAccessEnabledis applied.If this annotation is declared at the class level, then the rule will be applied to each of its resource methods. Moreover, when this annotation is present at the class and method levels, then both rules must be satisfied to get access to the REST resource.
- Since:
- 5.9.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends AuthorizationRule>value
-
-
-
Element Detail
-
value
Class<? extends AuthorizationRule> value
-
-