|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface Authenticator
Authenticator Interface
An Authenticator is responsible for checking requests and sending
response challenges in order to authenticate a request.
Various types of Authentication are returned in order to
signal the next step in authentication.
| 嵌套类摘要 | |
|---|---|
static interface |
Authenticator.AuthConfiguration
Authenticator Configuration |
static interface |
Authenticator.Factory
Authenticator Factory |
| 方法摘要 | |
|---|---|
String |
getAuthMethod()
|
boolean |
secureResponse(ServletRequest request,
ServletResponse response,
boolean mandatory,
Authentication.User validatedUser)
|
void |
setConfiguration(Authenticator.AuthConfiguration configuration)
Configure the Authenticator |
Authentication |
validateRequest(ServletRequest request,
ServletResponse response,
boolean mandatory)
Validate a response |
| 方法详细信息 |
|---|
void setConfiguration(Authenticator.AuthConfiguration configuration)
configuration - String getAuthMethod()
Authentication validateRequest(ServletRequest request,
ServletResponse response,
boolean mandatory)
throws ServerAuthException
request - The requestresponse - The responsemandatory - True if authentication is mandatory.
Authentication.User. If a response has
been sent by the Authenticator (which can be done for both successful and unsuccessful authentications), then the result will
implement Authentication.ResponseSent. If Authentication is not manditory, then a
Authentication.Deferred may be returned.
ServerAuthException
boolean secureResponse(ServletRequest request,
ServletResponse response,
boolean mandatory,
Authentication.User validatedUser)
throws ServerAuthException
request - response - mandatory - validatedUser -
ServerAuthException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||