| java.lang.Object sun.net.www.protocol.http.AuthenticationInfo sun.net.www.protocol.http.DigestAuthentication
DigestAuthentication | class DigestAuthentication extends AuthenticationInfo (Code) | | DigestAuthentication: Encapsulate an http server authentication using
the "Digest" scheme, as described in RFC2069 and updated in RFC2617
|
Inner Class :static class Parameters | |
Constructor Summary | |
public | DigestAuthentication(boolean isProxy, URL url, String realm, String authMethod, PasswordAuthentication pw, Parameters params) | public | DigestAuthentication(boolean isProxy, String host, int port, String realm, String authMethod, PasswordAuthentication pw, Parameters params) |
DIGEST_AUTH | final static char DIGEST_AUTH(Code) | | |
params | Parameters params(Code) | | |
getHeaderName | String getHeaderName()(Code) | | the name of the HTTP header this authentication wants set |
getHeaderValue | String getHeaderValue(URL url, String method)(Code) | | Reclaculates the request-digest and returns it.
the value of the HTTP header this authentication wants set |
isAuthorizationStale | boolean isAuthorizationStale(String header)(Code) | | Check if the header indicates that the current auth. parameters are stale.
If so, then replace the relevant field with the new value
and return true. Otherwise return false.
returning true means the request can be retried with the same userid/password
returning false means we have to go back to the user to ask for a new
username password.
|
setHeaders | boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw)(Code) | | Set header(s) on the given connection.
Parameters: conn - The connection to apply the header(s) to Parameters: p - A source of header values for this connection, if needed. Parameters: raw - Raw header values for this connection, if needed. true if all goes well, false if no headers were set. |
supportsPreemptiveAuthorization | boolean supportsPreemptiveAuthorization()(Code) | | true if this authentication supports preemptive authorization |
Methods inherited from sun.net.www.protocol.http.AuthenticationInfo | void addToCache()(Code)(Java Doc) String cacheKey(boolean includeRealm)(Code)(Java Doc) abstract void checkResponse(String header, String method, URL url) throws IOException(Code)(Java Doc) public Object clone()(Code)(Java Doc) void endAuthRequest()(Code)(Java Doc) static AuthenticationInfo getAuth(String key, URL url)(Code)(Java Doc) abstract String getHeaderName()(Code)(Java Doc) abstract String getHeaderValue(URL url, String method)(Code)(Java Doc) static AuthenticationInfo getProxyAuth(String host, int port)(Code)(Java Doc) static AuthenticationInfo getProxyAuth(String host, int port, String realm, char atype)(Code)(Java Doc) static AuthenticationInfo getServerAuth(URL url)(Code)(Java Doc) static AuthenticationInfo getServerAuth(URL url, String realm, char atype)(Code)(Java Doc) abstract boolean isAuthorizationStale(String header)(Code)(Java Doc) static void printCache()(Code)(Java Doc) static String reducePath(String urlPath)(Code)(Java Doc) void removeFromCache()(Code)(Java Doc) abstract boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw)(Code)(Java Doc) abstract boolean supportsPreemptiveAuthorization()(Code)(Java Doc)
|
|
|