BasicAuthenticationCredentials Class
- java.
lang. Object - com.
microsoft. bot. restclient. credentials. BasicAuthenticationCredentials
- com.
Implements
public class BasicAuthenticationCredentials
implements ServiceClientCredentials
Basic Auth credentials for use with a REST Service Client.
Constructor Summary
| Constructor | Description |
|---|---|
| BasicAuthenticationCredentials(String withUserName, String withPassword) |
Instantiates a new basic authentication credential. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void |
applyCredentialsFilter(OkHttpClient.Builder clientBuilder)
Apply the credentials to the HTTP client builder. |
| protected java.lang.String | getPassword() |
| java.lang.String | getUserName() |
Methods inherited from java.lang.Object
Constructor Details
BasicAuthenticationCredentials
public BasicAuthenticationCredentials(String withUserName, String withPassword)
Instantiates a new basic authentication credential.
Parameters:
Method Details
applyCredentialsFilter
public void applyCredentialsFilter(OkHttpClient.Builder clientBuilder)
Apply the credentials to the HTTP client builder.
Parameters:
getPassword
protected String getPassword()
Returns:
getUserName
public String getUserName()
Returns: