public interface Authenticator extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Principal |
authenticate(UserRealm realm,
String pathInContext,
Request request,
Response response)
Authenticate.
|
String |
getAuthMethod() |
Principal authenticate(UserRealm realm, String pathInContext, Request request, Response response) throws IOException
realm - 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.Principal if authenticated. Null if Authentication
failed. If the SecurityConstraint.__NOBODY instance is returned,
the request is considered as part of the authentication process.IOException - if an error occursString getAuthMethod()
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.