Package io.helidon.security.abac.policy
Annotation Type PolicyValidator.PolicyStatement
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) @Documented @Inherited @AbacAnnotation public static @interface PolicyValidator.PolicyStatement
Annotate resource classes, methods, application etc. with this annotation to enforce validation of the policy statement defined.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
inherit
By default, all policy statements defined on all levels (application, class, method, field) are executed in order.
-
-
-
Element Detail
-
value
String value
The statement of this policy. Actual value depends on policy engine in use.- Returns:
- policy statement value
-
-
-
inherit
boolean inherit
By default, all policy statements defined on all levels (application, class, method, field) are executed in order. If set to false, on the last policy in the list is executed (e.g. only on method for resource method of Jersey integration, if it is defined on method). NOTE: if there is no statement defined on current level, we will use a statement from nearest level above- Returns:
- whether to inherit policies from annotations defined on higher level
- Default:
- true
-
-