public class BasicAuthenticationCredentials extends Object implements ServiceClientCredentials
Constructor and Description |
---|
BasicAuthenticationCredentials(String userName,
String password)
Instantiates a new basic authentication credential.
|
Modifier and Type | Method and Description |
---|---|
void |
applyCredentialsFilter(okhttp3.OkHttpClient.Builder clientBuilder)
Apply the credentials to the HTTP client builder.
|
protected String |
getPassword() |
String |
getUserName() |
public String getUserName()
protected String getPassword()
public void applyCredentialsFilter(okhttp3.OkHttpClient.Builder clientBuilder)
ServiceClientCredentials
applyCredentialsFilter
in interface ServiceClientCredentials
clientBuilder
- the builder for building up an OkHttpClient
Copyright © 2019. All rights reserved.