private class HttpClientConnector.HttpBasicAuthentication extends BasicAuthentication<AuthenticationChallenge,java.lang.String> implements HttpClientConnector.HttpAuthenticationHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
asked |
password, user
done, params, proxy
Constructor and Description |
---|
HttpBasicAuthentication() |
Modifier and Type | Method and Description |
---|---|
protected void |
askCredentials()
Asks for credentials via the global
Authenticator . |
java.lang.String |
getName() |
java.lang.String |
getToken()
Retrieves the last token generated.
|
clearPassword, close, process, start
isDone, setParams
public java.lang.String getName()
getName
in interface HttpClientConnector.HttpAuthenticationHandler
protected void askCredentials()
BasicAuthentication
Authenticator
.askCredentials
in class BasicAuthentication<AuthenticationChallenge,java.lang.String>
public java.lang.String getToken() throws java.lang.Exception
AuthenticationHandler
getToken
in interface AuthenticationHandler<AuthenticationChallenge,java.lang.String>
null
if there is nonejava.lang.Exception
- if an error occurs