Class AccessPolicy

java.lang.Object
org.apache.nifi.authorization.AccessPolicy

public class AccessPolicy extends Object
Defines a policy for a set of userIdentifiers to perform a set of actions on a given resource.
  • Field Details

  • Constructor Details

  • Method Details

    • getIdentifier

      public String getIdentifier()
      Returns:
      the identifier for this policy
    • getResource

      public String getResource()
      Returns:
      the resource for this policy
    • getUsers

      public Set<String> getUsers()
      Returns:
      an unmodifiable set of user ids for this policy
    • getGroups

      public Set<String> getGroups()
      Returns:
      an unmodifiable set of group ids for this policy
    • getAction

      public RequestAction getAction()
      Returns:
      the action for this policy
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object