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