public class BasicAuth extends java.lang.Object implements AuthMethod
| Constructor and Description |
|---|
BasicAuth(java.lang.String username,
java.lang.String password)
This constructor creates a new instance of
BasicAuth using the given username and
password. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthHeaderValue()
This method generates a value to be passed in the "Authorization" header of any HTTP requests
using this authorization method.
|
public BasicAuth(java.lang.String username,
java.lang.String password)
BasicAuth using the given username and
password.username - The username to use for authenticationpassword - The corresponding password for the given usernamepublic java.lang.String getAuthHeaderValue()
getAuthHeaderValue in interface AuthMethod