| Modifier and Type | Field and Description |
|---|---|
EepGet.AUTH_MODE | authModeAuth mode as received in the 407 response. |
boolean | authSentWhether the auth header has been sent. |
| Constructor and Description |
|---|
AuthState(String user,
String pw)Create the auth state with the given credentials. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> | generateAuthArgs(String method,
String uri)Generate the digest authentication parameters
Ref: RFC 2617 |
String | getAuthHeader(String method,
String uri)Build the Authorization header for the given request. |
String | getPassword() |
String | getUsername() |
void | setAuthChallenge(String auth)May be called multiple times, save the best one. |
public EepGet.AUTH_MODE authMode
public boolean authSent
public Map<String,String> generateAuthArgs(String method, String uri) throws IOException
IOExceptionpublic String getAuthHeader(String method, String uri) throws IOException
IOExceptionpublic String getPassword()
public String getUsername()
public void setAuthChallenge(String auth)
auth - challenge string from 407 response