public org.springframework.http.HttpHeaders createBasicAuthHeaders(final String basicAuthUser,
                                                                       final String basicAuthPassword) {
        return HttpUtils.createBasicAuthHeaders(basicAuthUser, basicAuthPassword, "US-ASCII");
    }
Create basic auth headers.

@param basicAuthUser     the basic auth user
@param basicAuthPassword the basic auth password
@return http headers
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpUtils.java