public class JaspiAuthenticator extends Object implements Authenticator
Authenticator.AuthConfiguration, Authenticator.Factory| 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() |
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
|
public 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 Authenticatorpublic String getAuthMethod()
getAuthMethod in interface Authenticatorpublic Authentication validateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, boolean mandatory) throws ServerAuthException
AuthenticatorvalidateRequest in interface 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
secureResponse in interface AuthenticatorServerAuthExceptionpublic Authentication validateRequest(JaspiMessageInfo messageInfo) throws ServerAuthException
ServerAuthExceptionpublic boolean secureResponse(JaspiMessageInfo messageInfo, Authentication validatedUser) throws ServerAuthException
ServerAuthExceptionCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.