public class JaspiAuthenticator extends LoginAuthenticator
Authenticator.AuthConfiguration, Authenticator.Factory_loginService| Constructor and Description |
|---|
JaspiAuthenticator(javax.security.auth.message.config.ServerAuthConfig authConfig,
Map authProperties,
ServletCallbackHandler callbackHandler,
Subject serviceSubject,
boolean allowLazyAuthentication,
IdentityService identityService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthMethod() |
UserIdentity |
login(String username,
Object password,
javax.servlet.ServletRequest request) |
boolean |
secureResponse(JaspiMessageInfo messageInfo,
Authentication validatedUser) |
boolean |
secureResponse(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory,
Authentication.User validatedUser) |
void |
setConfiguration(Authenticator.AuthConfiguration configuration)
Configure the Authenticator
|
Authentication |
validateRequest(JaspiMessageInfo messageInfo) |
Authentication |
validateRequest(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
boolean mandatory)
Validate a response
|
getLoginService, renewSessionpublic JaspiAuthenticator(javax.security.auth.message.config.ServerAuthConfig authConfig, Map authProperties, ServletCallbackHandler callbackHandler, Subject serviceSubject, boolean allowLazyAuthentication, IdentityService identityService)
public void setConfiguration(Authenticator.AuthConfiguration configuration)
AuthenticatorsetConfiguration in interface AuthenticatorsetConfiguration in class LoginAuthenticatorpublic String getAuthMethod()
public Authentication validateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, boolean mandatory) throws ServerAuthException
Authenticatorrequest - 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.ServerAuthExceptionpublic boolean secureResponse(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory,
Authentication.User validatedUser)
throws ServerAuthException
ServerAuthExceptionpublic UserIdentity login(String username, Object password, javax.servlet.ServletRequest request)
login in class LoginAuthenticatorLoginAuthenticator.login(java.lang.String, java.lang.Object, javax.servlet.ServletRequest)public Authentication validateRequest(JaspiMessageInfo messageInfo) throws ServerAuthException
ServerAuthExceptionpublic boolean secureResponse(JaspiMessageInfo messageInfo, Authentication validatedUser) throws ServerAuthException
ServerAuthExceptionCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.