Interface Attribute


  • public interface Attribute
    An attribute is a simple matcher for policies. A Attribute is created from a JsonPointer to the User object and a logical operator:
    • Method Detail

      • has

        static Attribute has​(String pointer,
                             Object value)
        Verifies whether the attribute matches the specified. The value must be in the JsonArray or JsonObject referenced by the json pointer.
      • eq

        static Attribute eq​(String pointer,
                            Object value)
        Verifies whether the attribute matches the specified. The value must be equal to the value referenced by the json pointer.
      • ne

        static Attribute ne​(String pointer,
                            Object value)
        Verifies whether the attribute matches the specified. The value must not be equal to the value referenced by the json pointer.
      • match

        boolean match​(User user)
        Verifies whether the attribute matches the specified user.
        Parameters:
        user - the user.
        Returns:
        true if there's a match