public static AuthorizationResult from(final Boolean allowed) {
        return allowed ? granted("OK") : denied("Denied");
    }
From boolean result.

@param allowed the allowed
@return the authorization result
support/cas-server-support-heimdall/src/main/java/org/apereo/cas/heimdall/authorizer/AuthorizationResult.java