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:
has(String, Object)- the value must be in the JsonArray or JsonObjecteq(String, Object)- the value must be equals to the pointed locationne(String, Object)- the value must not be equals to the pointed location
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeA custom function to be used during matching.static AttributeVerifies whether the attribute matches the specified.static AttributeVerifies whether the attribute matches the specified.booleanVerifies whether the attribute matches the specified user.static AttributeVerifies whether the attribute matches the specified.toJson()
-
Method Details
-
has
-
eq
-
ne
-
create
-
match
Verifies whether the attribute matches the specified user.- Parameters:
user- the user.- Returns:
- true if there's a match
-
toJson
JsonObject toJson()
-