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
Authenticator
authenticate
in interface Authenticator
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.IOException
public String getAuthMethod()
getAuthMethod
in interface Authenticator
public void sendChallenge(UserRealm realm, HttpResponse response) throws IOException
IOException
Copyright © 2013. All rights reserved.