Documentation for accessing and setting credentials for BasicAuth.
| Name | Type | Description | Setter | Getter |
|---|---|---|---|---|
| BasicAuthUserName | String |
The username to use with basic authentication | username |
getBasicAuthUserName() |
| BasicAuthPassword | String |
The password to use with basic authentication | password |
getBasicAuthPassword() |
Note: Auth credentials can be set using basicAuthCredentials in the client builder and accessed through getBasicAuthCredentials method in the client instance.
You must provide credentials in the client as shown in the following code snippet.
import com.maxio.advancedbilling.AdvancedBillingClient;
import com.maxio.advancedbilling.authentication.BasicAuthModel;
public class Program {
public static void main(String[] args) {
AdvancedBillingClient client = new AdvancedBillingClient.Builder()
.basicAuthCredentials(new BasicAuthModel.Builder(
"BasicAuthUserName",
"BasicAuthPassword"
)
.build())
.build();
}
}