rest-assured/src/main/java/io/restassured/internal/http/AuthConfig.java
public void basic(String user, String pass) {
        URI uri = ((URIBuilder) builder.getUri()).toURI();
        if (uri == null) throw new IllegalStateException("a default URI must be set");
        this.basic(uri.getHost(), uri.getPort(), user, pass);
    }
public void basic(String user, String pass) {
        URI uri = ((URIBuilder) builder.getUri()).toURI();
        if (uri == null) throw new IllegalStateException("a default URI must be set");
        this.basic(uri.getHost(), uri.getPort(), user, pass);
    }
Set authentication credentials to be used for the current
{@link HTTPBuilder#getUri() default host}.  This method name is a bit of
a misnomer, since these credentials will actually work for "digest"
authentication as well.

@param user
@param pass