Class RoleModel.Policy

java.lang.Object
org.apache.hadoop.fs.s3a.auth.RoleModel.RoleElt
org.apache.hadoop.fs.s3a.auth.RoleModel.Policy
Enclosing class:
RoleModel

public static class RoleModel.Policy extends RoleModel.RoleElt
A policy is one or more statements.
  • Field Details

  • Constructor Details

  • Method Details

    • validate

      public void validate()
      Validation includes validating all statements.
      Overrides:
      validate in class RoleModel.RoleElt
    • add

      public void add(RoleModel.Policy other)
      Add the statements of another policy to this one.
      Parameters:
      other - other policy.
    • add

      public void add(Collection<RoleModel.Statement> statements)
      Add a collection of statements.
      Parameters:
      statements - statements to add.
    • add

      public void add(RoleModel.Statement stat)
      Add a single statement.
      Parameters:
      stat - new statement.