Interface Rule

All Superinterfaces:
Serializable
All Known Subinterfaces:
RuleBuilder
All Known Implementing Classes:
RuleBuilderImpl, RuleImpl

public interface Rule extends Serializable
Represents a single rule in the policy.
  • Method Details

    • getPermissions

      Set<Permission> getPermissions()
    • getIncludedSubjects

      Set<Subject> getIncludedSubjects()
    • getExcludedSubjects

      Set<Subject> getExcludedSubjects()
    • getCondition

      Node getCondition()
    • isNegative

      boolean isNegative()
      Returns:
      false if the rule is a GRANT, true if it's a DENY rule.
    • isFinal

      boolean isFinal()
    • getModule

      AppModule getModule()
    • getSelector

      Selector getSelector()
    • getAnnotation

      <T> Optional<T> getAnnotation(Rule.Key<T> key)
    • annotations

      Map<Rule.Key<?>,Object> annotations()