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)
ServiceClientCredentialsapplyCredentialsFilter in interface ServiceClientCredentialsclientBuilder - the builder for building up an OkHttpClientCopyright © 2019. All rights reserved.