Class sun.server.http.security.MD5Authentication
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.http.security.MD5Authentication

java.lang.Object
   |
   +----sun.server.http.security.MD5Authentication

public class MD5Authentication
extends Object
implements HttpAuthentication
This is a class that does the MD5 based user/passwd authentication This class currently is *not* completely compliant with the draft spec for the Digest authentication scheme. It is simply used now to do password authentication in the AdminServlet using our own protocol (which is close to the draft spec).

Constructor Index

 o MD5Authentication(String, HttpSecurityAclInfo)

Method Index

 o authenticate(HttpRequest)
implement the HttpAuthentication interface using the base64 encoding scheme.
 o getMD5Nonce(HttpRequest)
 o getRealm()
returns the realm of the authentication.
 o getScheme()
returns the name of the authentication scheme.
 o sendError(HttpRequest, HttpResponse)
sends the unauthorized error to HttpResponse.

Constructors

 o MD5Authentication
  public MD5Authentication(String realmName,
                           HttpSecurityAclInfo aclInfo)

Methods

 o getScheme
  public String getScheme()
returns the name of the authentication scheme.
Returns:
the scheme used
 o getRealm
  public String getRealm()
returns the realm of the authentication.
Returns:
the realm name
 o authenticate
  public String authenticate(HttpRequest req) throws AuthenticationException
implement the HttpAuthentication interface using the base64 encoding scheme.
Throws: AuthenticationException
exception
 o getMD5Nonce
  public String getMD5Nonce(HttpRequest req)

All Packages  Class Hierarchy  This Package  Previous  Next  Index