public class AuthenticationManager
extends java.lang.Object
| Constructor and Description |
|---|
AuthenticationManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAuthData()
Clear the username and password.
|
void |
setAuthData(java.lang.String user,
java.lang.String pass)
Set the username and password that should be used to perform basic
http authentication.
|
void |
setAuthentication(java.net.HttpURLConnection http)
Set the authentication at the HttpURLConnection.
|
public void clearAuthData()
public void setAuthData(java.lang.String user,
java.lang.String pass)
user - Usernamepass - Passwordpublic void setAuthentication(java.net.HttpURLConnection http)
http - The HttpURLConnection to set authentication.