Top Description Methods
org.mortbay.jetty

public Interface Authenticator

extends Serializable
Imports
java.io.IOException, .Serializable, java.security.Principal

Authenticator Interface. This is the interface that must be implemented to provide authentication implementations to the HttpContext.

Method Summary

Modifier and TypeMethod and Description
public Principal

Returns:

User Principal if authenticated. Null if Authentication failed. If the SecurityConstraint.__NOBODY instance is returned, the request is considered as part of the authentication process.
authenticate
(UserRealm
an UserRealm value
realm
,
String
a String value
pathInContext
,
Request
a Request value
request
,
Response
a Response value. If non-null response is passed, then a failed authentication will result in a challenge response being set in the response.
response
)

Authenticate.

public String

Method Detail

authenticateback to summary
public Principal authenticate(UserRealm realm, String pathInContext, Request request, Response response) throws IOException

Authenticate.

Parameters
realm:UserRealm

an UserRealm value

pathInContext:String

a String value

request:Request

a Request value

response:Response

a Response value. If non-null response is passed, then a failed authentication will result in a challenge response being set in the response.

Returns:Principal

User Principal if authenticated. Null if Authentication failed. If the SecurityConstraint.__NOBODY instance is returned, the request is considered as part of the authentication process.

Exceptions
IOException:
if an error occurs
getAuthMethodback to summary
public String getAuthMethod()