org.mortbay.http
Class DigestAuthenticator

java.lang.Object
  |
  +--org.mortbay.http.DigestAuthenticator
All Implemented Interfaces:
SecurityConstraint.Authenticator, java.io.Serializable

public class DigestAuthenticator
extends java.lang.Object
implements SecurityConstraint.Authenticator

DIGEST authentication.

Version:
$Id: DigestAuthenticator.java,v 1.5.2.1 2004/06/11 07:26:37 gregwilkins Exp $
Author:
Greg Wilkins (gregw)
See Also:
Serialized Form

Constructor Summary
DigestAuthenticator()
           
 
Method Summary
 UserPrincipal authenticated(UserRealm realm, java.lang.String pathInContext, HttpRequest request, HttpResponse response)
          Authenticate.
 java.lang.String getAuthMethod()
           
 void sendChallenge(UserRealm realm, HttpRequest request, HttpResponse response)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestAuthenticator

public DigestAuthenticator()
Method Detail

authenticated

public UserPrincipal authenticated(UserRealm realm,
                                   java.lang.String pathInContext,
                                   HttpRequest request,
                                   HttpResponse response)
                            throws java.io.IOException
Description copied from interface: SecurityConstraint.Authenticator
Authenticate.

Specified by:
authenticated in interface SecurityConstraint.Authenticator
Returns:
UserPrinciple if authenticated or null if not. If Authentication fails, then the authenticator may have committed the response as an auth challenge or redirect.
Throws:
java.io.IOException

getAuthMethod

public java.lang.String getAuthMethod()
Specified by:
getAuthMethod in interface SecurityConstraint.Authenticator

sendChallenge

public void sendChallenge(UserRealm realm,
                          HttpRequest request,
                          HttpResponse response)
                   throws java.io.IOException
java.io.IOException


Copyright ? 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.