public class JaspiAuthenticator extends LoginAuthenticator
Authenticator.AuthConfiguration, Authenticator.Factory
_loginService
Constructor and Description |
---|
JaspiAuthenticator(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,
ServletRequest request) |
boolean |
secureResponse(JaspiMessageInfo messageInfo,
Authentication validatedUser) |
boolean |
secureResponse(ServletRequest req,
ServletResponse res,
boolean mandatory,
Authentication.User validatedUser) |
void |
setConfiguration(Authenticator.AuthConfiguration configuration)
Configure the Authenticator
|
Authentication |
validateRequest(JaspiMessageInfo messageInfo) |
Authentication |
validateRequest(ServletRequest request,
ServletResponse response,
boolean mandatory)
Validate a request
|
getLoginService, prepareRequest, renewSession
public JaspiAuthenticator(ServerAuthConfig authConfig, Map authProperties, ServletCallbackHandler callbackHandler, Subject serviceSubject, boolean allowLazyAuthentication, IdentityService identityService)
public void setConfiguration(Authenticator.AuthConfiguration configuration)
Authenticator
setConfiguration
in interface Authenticator
setConfiguration
in class LoginAuthenticator
public String getAuthMethod()
public Authentication validateRequest(ServletRequest request, ServletResponse response, boolean mandatory) throws ServerAuthException
Authenticator
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
public boolean secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, Authentication.User validatedUser) throws ServerAuthException
ServerAuthException
public UserIdentity login(String username, Object password, ServletRequest request)
login
in class LoginAuthenticator
LoginAuthenticator.login(java.lang.String, java.lang.Object, javax.servlet.ServletRequest)
public Authentication validateRequest(JaspiMessageInfo messageInfo) throws ServerAuthException
ServerAuthException
public boolean secureResponse(JaspiMessageInfo messageInfo, Authentication validatedUser) throws ServerAuthException
ServerAuthException
Copyright © 1995-2015 Webtide. All Rights Reserved.