Class AuthPolicyList

  • All Implemented Interfaces:
    AuthPolicy

    public class AuthPolicyList
    extends java.lang.Object
    implements AuthPolicy
    An AuthPolicy that combines a number of AuthPolicies. All policies must authorize access for this policy to allow access.
    • Constructor Detail

      • AuthPolicyList

        public AuthPolicyList()
    • Method Detail

      • merge

        public static AuthPolicy merge​(AuthPolicy policy1,
                                       AuthPolicy policy2)
        Merge AuthPolicies, returning a combination of the two if both are non-null. If either is null, return the other. If both null, return null.
      • isAllowed

        public boolean isAllowed​(java.lang.String user)
        Description copied from interface: AuthPolicy
        Is the use authorized for this resource?
        Specified by:
        isAllowed in interface AuthPolicy
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object