(Quick Reference)

basicAuthUserName

Purpose

Sets the username when using HTTP Basic authentication.

Examples

jerseyRequestBuilder.get {
    uri = "http://example.com/protected"
    useBasicAuth = true
    basicAuthUserName = "foo"
    basicAuthPassword = "bar"
}

Description

The username is required when making HTTP Basic authentication requests. This property is used in conjunction with useBasicAuth and basicAuthPassword.