Package io.helidon.security.abac.policy
Annotation Interface PolicyValidator.PolicyStatement
- Enclosing class:
- PolicyValidator
@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.
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
By default, all policy statements defined on all levels (application, class, method, field) are executed in order.
-
Element Details
-
value
String valueThe statement of this policy. Actual value depends on policy engine in use.- Returns:
- policy statement value
-
-
-
inherit
boolean inheritBy 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
-