Save This Page
Home » openjdk-7 » sun.net.www.protocol » http » [javadoc | source]
sun.net.www.protocol.http
class: DigestAuthentication [javadoc | source]
java.lang.Object
   sun.net.www.protocol.http.AuthCacheValue
      sun.net.www.protocol.http.AuthenticationInfo
         sun.net.www.protocol.http.DigestAuthentication

All Implemented Interfaces:
    Cloneable, java$io$Serializable

DigestAuthentication: Encapsulate an http server authentication using the "Digest" scheme, as described in RFC2069 and updated in RFC2617
Nested Class Summary:
static class  DigestAuthentication.Parameters   
Field Summary
 Parameters params     
Fields inherited from sun.net.www.protocol.http.AuthenticationInfo:
SERVER_AUTHENTICATION,  PROXY_AUTHENTICATION,  serializeAuth,  pw,  type,  authScheme,  protocol,  host,  port,  realm,  path,  s1,  s2
Fields inherited from sun.net.www.protocol.http.AuthCacheValue:
cache
Constructor:
 public DigestAuthentication(boolean isProxy,
    URL url,
    String realm,
    String authMethod,
    PasswordAuthentication pw,
    Parameters params) 
    Create a DigestAuthentication
 public DigestAuthentication(boolean isProxy,
    String host,
    int port,
    String realm,
    String authMethod,
    PasswordAuthentication pw,
    Parameters params) 
Method from sun.net.www.protocol.http.DigestAuthentication Summary:
checkResponse,   checkResponse,   getHeaderValue,   getHeaderValue,   isAuthorizationStale,   setHeaders,   supportsPreemptiveAuthorization
Methods from sun.net.www.protocol.http.AuthenticationInfo:
addToCache,   cacheKey,   clone,   credentials,   endAuthRequest,   getAuth,   getAuthScheme,   getAuthType,   getHeaderName,   getHeaderValue,   getHost,   getPath,   getPort,   getProtocolScheme,   getProxyAuth,   getProxyAuth,   getProxyAuthKey,   getRealm,   getServerAuth,   getServerAuth,   getServerAuthKey,   isAuthorizationStale,   reducePath,   removeFromCache,   setHeaders,   supportsPreemptiveAuthorization
Methods from sun.net.www.protocol.http.AuthCacheValue:
credentials,   getAuthScheme,   getAuthType,   getHost,   getPath,   getPort,   getProtocolScheme,   getRealm,   setAuthCache
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.net.www.protocol.http.DigestAuthentication Detail:
 public  void checkResponse(String header,
    String method,
    URL url) throws IOException 
 public  void checkResponse(String header,
    String method,
    String uri) throws IOException 
 public String getHeaderValue(URL url,
    String method) 
    Reclaculates the request-digest and returns it.

    Used in the common case where the requestURI is simply the abs_path.

 String getHeaderValue(String requestURI,
    String method) 
    Reclaculates the request-digest and returns it.

    Used when the requestURI is not the abs_path. The exact requestURI can be passed as a String.

 public boolean isAuthorizationStale(String header) 
    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.
 public boolean setHeaders(HttpURLConnection conn,
    HeaderParser p,
    String raw) 
    Set header(s) on the given connection.
 public boolean supportsPreemptiveAuthorization()