@Override
    @JsonIgnore
    public TriStateBoolean getStatus() {
        if (this.policies.stream().filter(BeanSupplier::isNotProxy).anyMatch(policy -> policy.getStatus().isTrue())) {
            return TriStateBoolean.TRUE;
        }
        if (this.policies.stream().filter(BeanSupplier::isNotProxy).allMatch(policy -> policy.getStatus().isFalse())) {
            return TriStateBoolean.FALSE;
        }
        return TriStateBoolean.UNDEFINED;
    }
Add policy.

@param policy the policy
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/consent/ChainingRegisteredServiceConsentPolicy.java