Package de.timroes.axmlrpc
Class AuthenticationManager
- java.lang.Object
-
- de.timroes.axmlrpc.AuthenticationManager
-
public class AuthenticationManager extends java.lang.ObjectThe AuthenticationManager handle basic HTTP authentication.- Author:
- Tim Roes
-
-
Constructor Summary
Constructors Constructor Description AuthenticationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearAuthData()Clear the username and password.voidsetAuthData(java.lang.String user, java.lang.String pass)Set the username and password that should be used to perform basic http authentication.voidsetAuthentication(java.net.HttpURLConnection http)Set the authentication at the HttpURLConnection.
-
-
-
Method Detail
-
clearAuthData
public void clearAuthData()
Clear the username and password. No basic HTTP authentication will be used in the next calls.
-
setAuthData
public void setAuthData(java.lang.String user, java.lang.String pass)Set the username and password that should be used to perform basic http authentication.- Parameters:
user- Usernamepass- Password
-
setAuthentication
public void setAuthentication(java.net.HttpURLConnection http)
Set the authentication at the HttpURLConnection.- Parameters:
http- The HttpURLConnection to set authentication.
-
-