Interface Policy

All Superinterfaces:
Iterable<Rule>, Serializable
All Known Subinterfaces:
PolicyBuilder
All Known Implementing Classes:
PolicyBuilderImpl, PolicyImpl

public interface Policy extends Iterable<Rule>, Serializable
A set of rules.
  • Field Details

    • EMPTY

      static final Policy EMPTY
  • Method Details

    • isEmpty

      boolean isEmpty()
    • getRules

      List<Rule> getRules()
    • subPolicy

      Policy subPolicy(Permission permission)
      Returns a Policy that contains only rules that are relevant for the given permission. This policy may be cached internally and is more efficient than filtering rules manually.
    • subPolicy

      Policy subPolicy(SecurityDomain permission)
      Returns a Policy that contains only rules that are relevant for the given domain. This policy may be cached internally and is more efficient than filtering rules manually.