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