boolean isBasicAuthentication() {
        return StringUtils.isNotBlank(basicAuthUsername) && StringUtils.isNotBlank(basicAuthPassword);
    }
Is basic authentication?

@return true/false
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpExecutionRequest.java