public class CookieAuthenticator extends java.lang.Object implements Authenticator
| Constructor and Description |
|---|
CookieAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(java.net.HttpURLConnection connection)
Called in every request
|
java.net.CookieManager |
getCookieManager() |
boolean |
login(java.lang.String username,
java.lang.String password,
HTTPConnectionHandler connectionHandler)
Mainly to Store Username and Password, but also to get cookie or so
|
public boolean login(java.lang.String username,
java.lang.String password,
HTTPConnectionHandler connectionHandler)
Authenticatorlogin in interface Authenticatorusername - The Userpassword - The PasswordconnectionHandler - The HTTPConnectionHandler that sends the requestspublic void authenticate(java.net.HttpURLConnection connection)
Authenticatorauthenticate in interface Authenticatorconnection - The Conncetionpublic java.net.CookieManager getCookieManager()