Package net.i2p.util
Class EepGet.AuthState
- java.lang.Object
-
- net.i2p.util.EepGet.AuthState
-
-
Field Summary
Fields Modifier and Type Field Description EepGet.AUTH_MODEauthModebooleanauthSent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>generateAuthArgs(String method, String uri)Generate the digest authentication parameters Ref: RFC 2617StringgetAuthHeader(String method, String uri)StringgetPassword()StringgetUsername()voidsetAuthChallenge(String auth)May be called multiple times, save the best one
-
-
-
Field Detail
-
authMode
public EepGet.AUTH_MODE authMode
-
authSent
public boolean authSent
-
-
Method Detail
-
setAuthChallenge
public void setAuthChallenge(String auth)
May be called multiple times, save the best one
-
getAuthHeader
public String getAuthHeader(String method, String uri) throws IOException
- Throws:
IOException
-
generateAuthArgs
public Map<String,String> generateAuthArgs(String method, String uri) throws IOException
Generate the digest authentication parameters Ref: RFC 2617- Throws:
IOException- Since:
- 0.9.12 modified from I2PTunnelHTTPClientBase.validateDigest()
-
getUsername
public String getUsername()
- Since:
- 0.9.33
-
getPassword
public String getPassword()
- Since:
- 0.9.33
-
-