org.mortbay.jetty.security
public interface Authenticator extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.security.Principal |
authenticate(UserRealm realm,
java.lang.String pathInContext,
Request request,
Response response)
Authenticate.
|
java.lang.String |
getAuthMethod() |
java.security.Principal authenticate(UserRealm realm, java.lang.String pathInContext, Request request, Response response) throws java.io.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.java.io.IOException
- if an error occursjava.lang.String getAuthMethod()
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.