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).
-
MD5Authentication(String, HttpSecurityAclInfo)
-
-
authenticate(HttpRequest)
- implement the HttpAuthentication interface using the base64 encoding
scheme.
-
getMD5Nonce(HttpRequest)
-
-
getRealm()
- returns the realm of the authentication.
-
getScheme()
- returns the name of the authentication scheme.
-
sendError(HttpRequest, HttpResponse)
- sends the unauthorized error to HttpResponse.
MD5Authentication
public MD5Authentication(String realmName,
HttpSecurityAclInfo aclInfo)
getScheme
public String getScheme()
- returns the name of the authentication scheme.
- Returns:
- the scheme used
getRealm
public String getRealm()
- returns the realm of the authentication.
- Returns:
- the realm name
authenticate
public String authenticate(HttpRequest req) throws AuthenticationException
- implement the HttpAuthentication interface using the base64 encoding
scheme.
- Throws: AuthenticationException
- exception
getMD5Nonce
public String getMD5Nonce(HttpRequest req)
All Packages Class Hierarchy This Package Previous Next Index