public class BasicAuthenticator extends Object implements Authenticator
| Constructor and Description |
|---|
BasicAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
Principal |
authenticate(UserRealm realm,
String pathInContext,
Request request,
Response response)
Authenticate.
|
String |
getAuthMethod() |
void |
sendChallenge(UserRealm realm,
Response response) |
public Principal authenticate(UserRealm realm, String pathInContext, Request request, Response response) throws IOException
Authenticatorauthenticate in interface Authenticatorrealm - an UserRealm valuepathInContext - a String valuerequest - a Request valueresponse - a Response value. If non-null response is passed,
then a failed authentication will result in a challenge response being
set in the response.IOExceptionpublic String getAuthMethod()
getAuthMethod in interface Authenticatorpublic void sendChallenge(UserRealm realm, Response response) throws IOException
IOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.