public class JaspiAuthenticator extends LoginAuthenticator
Authenticator.AuthConfiguration, Authenticator.Factory_loginService| Constructor and Description |
|---|
JaspiAuthenticator(javax.security.auth.message.config.ServerAuthConfig authConfig,
java.util.Map authProperties,
ServletCallbackHandler callbackHandler,
javax.security.auth.Subject serviceSubject,
boolean allowLazyAuthentication,
IdentityService identityService) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthMethod() |
UserIdentity |
login(java.lang.String username,
java.lang.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)
is response secure
|
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 request
|
getLoginService, logout, prepareRequest, renewSessionpublic JaspiAuthenticator(javax.security.auth.message.config.ServerAuthConfig authConfig,
java.util.Map authProperties,
ServletCallbackHandler callbackHandler,
javax.security.auth.Subject serviceSubject,
boolean allowLazyAuthentication,
IdentityService identityService)
public void setConfiguration(Authenticator.AuthConfiguration configuration)
AuthenticatorsetConfiguration in interface AuthenticatorsetConfiguration in class LoginAuthenticatorconfiguration - the configurationpublic java.lang.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 mandatory, then a
Authentication.Deferred may be returned.ServerAuthException - if unable to validate requestpublic boolean secureResponse(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory,
Authentication.User validatedUser)
throws ServerAuthException
Authenticatorreq - the requestres - the responsemandatory - if security is mandatorvalidatedUser - the user that was validatedServerAuthException - if unable to test responsepublic UserIdentity login(java.lang.String username, java.lang.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–2022 Webtide. All rights reserved.