public interface Authenticator extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Principal |
authenticate(UserRealm realm,
String pathInContext,
HttpRequest request,
HttpResponse response)
Authenticate.
|
String |
getAuthMethod() |
Principal authenticate(UserRealm realm, String pathInContext, HttpRequest request, HttpResponse response) throws IOException
realm - 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.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 © 2016. All Rights Reserved.