@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AthenzAssertion that = (AthenzAssertion) o;
        return Objects.equals(id, that.id) && effect == that.effect && Objects.equals(role, that.role) && Objects.equals(resource, that.resource) && Objects.equals(action, that.action);
    }
Convenience method to check if an assertion matches the given role, resource and action.
vespa-athenz/src/main/java/com/yahoo/vespa/athenz/api/AthenzAssertion.java