org.openqa.jetty.http
Class BasicAuthenticator
java.lang.Object
org.openqa.jetty.http.BasicAuthenticator
- All Implemented Interfaces:
- Serializable, Authenticator
- Direct Known Subclasses:
- BasicAuthenticator
public class BasicAuthenticator
- extends Object
- implements Authenticator
BASIC authentication.
- Version:
- $Id: BasicAuthenticator.java,v 1.17 2005/08/13 00:01:24 gregwilkins Exp $
- Author:
- Greg Wilkins (gregw)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicAuthenticator
public BasicAuthenticator()
authenticate
public Principal authenticate(UserRealm realm,
String pathInContext,
HttpRequest request,
HttpResponse response)
throws IOException
- Description copied from interface:
Authenticator
- Authenticate.
- Specified by:
authenticate
in interface Authenticator
- Parameters:
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.
- Returns:
- UserPrinciple if authenticated or null if not. If
Authentication fails, then the authenticator may have committed
the response as an auth challenge or redirect.
- Throws:
IOException
getAuthMethod
public String getAuthMethod()
- Specified by:
getAuthMethod
in interface Authenticator
sendChallenge
public void sendChallenge(UserRealm realm,
HttpResponse response)
throws IOException
- Throws:
IOException
Copyright © 2012. All Rights Reserved.