diff options
author | Ola Aunrønning <olaa@verizonmedia.com> | 2022-03-14 11:32:14 +0100 |
---|---|---|
committer | Ola Aunrønning <olaa@verizonmedia.com> | 2022-03-14 11:32:14 +0100 |
commit | 065053e8efaa6941521e1ec79b7948d34d73d18e (patch) | |
tree | c1bb2f31f341fc87d57836bb95561c6fa29d3434 /vespa-athenz | |
parent | fed4f6dddba35fe13b9d10dc79485fa7d4d97afb (diff) |
Infer managed access through assertion existence
Diffstat (limited to 'vespa-athenz')
-rw-r--r-- | vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAssertion.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAssertion.java b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAssertion.java index 23d1b4dfc7e..cf6f40155fc 100644 --- a/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAssertion.java +++ b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAssertion.java @@ -36,6 +36,12 @@ public class AthenzAssertion { return new Builder(role, resource, action); } + public boolean satisfies(AthenzAssertion other) { + return role.equals(other.role()) && + action.equals(other.action()) && + resource.equals(other.resource()); + } + public static class Builder { private Long id; private Effect effect; |