Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.21 KB

File metadata and controls

42 lines (26 loc) · 1.21 KB

Basic Authentication

Documentation for accessing and setting credentials for BasicAuth.

Auth Credentials

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.

Usage Example

Client Initialization

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();
    }
}