org.eclipse.jetty.security.jaspi
类 JaspiAuthenticator
java.lang.Object
org.eclipse.jetty.security.authentication.LoginAuthenticator
org.eclipse.jetty.security.jaspi.JaspiAuthenticator
- 所有已实现的接口:
- Authenticator
public class JaspiAuthenticator
- extends LoginAuthenticator
- 版本:
- $Rev: 4793 $ $Date: 2009-03-19 00:00:01 +0100 (Thu, 19 Mar 2009) $
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaspiAuthenticator
public JaspiAuthenticator(ServerAuthConfig authConfig,
Map authProperties,
ServletCallbackHandler callbackHandler,
Subject serviceSubject,
boolean allowLazyAuthentication,
IdentityService identityService)
setConfiguration
public void setConfiguration(Authenticator.AuthConfiguration configuration)
- 从接口
Authenticator 复制的描述
- Configure the Authenticator
- 指定者:
- 接口
Authenticator 中的 setConfiguration - 覆盖:
- 类
LoginAuthenticator 中的 setConfiguration
getAuthMethod
public String getAuthMethod()
- 返回:
- The name of the authentication method
validateRequest
public Authentication validateRequest(ServletRequest request,
ServletResponse response,
boolean mandatory)
throws ServerAuthException
- 从接口
Authenticator 复制的描述
- Validate a response
- 参数:
request - The requestresponse - The responsemandatory - True if authentication is mandatory.
- 返回:
- An Authentication. If Authentication is successful, this will be a
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
secureResponse
public boolean secureResponse(ServletRequest req,
ServletResponse res,
boolean mandatory,
Authentication.User validatedUser)
throws ServerAuthException
- 返回:
- true if response is secure
- 抛出:
ServerAuthException
login
public UserIdentity login(String username,
Object password,
ServletRequest request)
- 覆盖:
- 类
LoginAuthenticator 中的 login
- 另请参见:
LoginAuthenticator.login(java.lang.String, java.lang.Object, javax.servlet.ServletRequest)
validateRequest
public Authentication validateRequest(JaspiMessageInfo messageInfo)
throws ServerAuthException
- 抛出:
ServerAuthException
secureResponse
public boolean secureResponse(JaspiMessageInfo messageInfo,
Authentication validatedUser)
throws ServerAuthException
- 抛出:
ServerAuthException
Copyright © 2013. All Rights Reserved.