| java.lang.Object HTTPClient.DefaultAuthHandler
DefaultAuthHandler | class DefaultAuthHandler implements AuthorizationHandler,GlobalConstants(Code) | | A simple authorization handler that throws up a message box requesting
both a username and password. This is default authorization handler.
Currently only handles the authentication types "Basic", "Digest" and
"SOCKS5" (used for the SocksClient and not part of HTTP per se).
version: 0.3-2 18/06/1999 author: Ronald Tschalär since: V0.2 |
Method Summary | |
public AuthorizationInfo | fixupAuthInfo(AuthorizationInfo info, RoRequest req, AuthorizationInfo challenge, RoResponse resp) For Digest authentication we need to set the uri, response and
opaque parameters. | public AuthorizationInfo | getAuthorization(AuthorizationInfo challenge, RoRequest req, RoResponse resp) returns the requested authorization, or null if none was given. | public void | handleAuthHeaders(Response resp, RoRequest req, AuthorizationInfo prev, AuthorizationInfo prxy) We handle the "Authentication-Info" and "Proxy-Authentication-Info"
headers here. | public void | handleAuthTrailers(Response resp, RoRequest req, AuthorizationInfo prev, AuthorizationInfo prxy) We handle the "Authentication-Info" and "Proxy-Authentication-Info"
trailers here. | static String | hex(byte[] buf) | final static byte[] | unHex(String hex) |
getAuthorization | public AuthorizationInfo getAuthorization(AuthorizationInfo challenge, RoRequest req, RoResponse resp) throws AuthSchemeNotImplException(Code) | | returns the requested authorization, or null if none was given.
Parameters: challenge - the parsed challenge from the server. Parameters: req - the request which solicited this response Parameters: resp - the full response received a structure containing the necessary authorization info,or null exception: AuthSchemeNotImplException - if the authentication schemein the challenge cannot be handled. |
hex | static String hex(byte[] buf)(Code) | | Produce a string of the form "A5:22:F1:0B:53"
|
|
|