protected boolean isUsagePolicyAcceptedBy(final Principal principal) {
        val attributes = principal.getAttributes();
        LOGGER.debug("Principal attributes found for [{}] are [{}]", principal.getId(), attributes);
        return isUsagePolicyAcceptedBy(attributes);
    }
Is usage policy accepted by user?
Looks into the attributes collected by the principal to find the correct attribute, specified in settings..
If the attribute contains {@code true}, then the policy is determined as accepted.

@param principal the principal
@return true if accepted, false otherwise.
support/cas-server-support-aup-core/src/main/java/org/apereo/cas/aup/BaseAcceptableUsagePolicyRepository.java