org.mortbay.http

Class BasicAuthenticator

public class BasicAuthenticator extends Object implements Authenticator

BASIC authentication.

Version: $Id: BasicAuthenticator.java,v 1.17 2005/08/13 00:01:24 gregwilkins Exp $

Author: Greg Wilkins (gregw)

Method Summary
Principalauthenticate(UserRealm realm, String pathInContext, HttpRequest request, HttpResponse response)
StringgetAuthMethod()
voidsendChallenge(UserRealm realm, HttpResponse response)

Method Detail

authenticate

public Principal authenticate(UserRealm realm, String pathInContext, HttpRequest request, HttpResponse response)

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: IOException

getAuthMethod

public String getAuthMethod()

sendChallenge

public void sendChallenge(UserRealm realm, HttpResponse response)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.