public class BasicAuthenticator extends Object implements Authenticator
| Constructor and Description |
|---|
BasicAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
Principal |
authenticate(UserRealm realm,
String pathInContext,
HttpRequest request,
HttpResponse response)
Authenticate.
|
String |
getAuthMethod() |
void |
sendChallenge(UserRealm realm,
HttpResponse response) |
public Principal authenticate(UserRealm realm, String pathInContext, HttpRequest request, HttpResponse response) throws 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.IOExceptionpublic String getAuthMethod()
getAuthMethod in interface Authenticatorpublic void sendChallenge(UserRealm realm, HttpResponse response) throws IOException
IOExceptionCopyright © 2014. All rights reserved.