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)
Authenticator
setConfiguration
in interface Authenticator
public String getAuthMethod()
getAuthMethod
in interface Authenticator
public Authentication validateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, boolean mandatory) throws ServerAuthException
Authenticator
validateRequest
in interface 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(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, boolean mandatory, Authentication.User validatedUser) throws ServerAuthException
secureResponse
in interface Authenticator
ServerAuthException
public Authentication validateRequest(JaspiMessageInfo messageInfo) throws ServerAuthException
ServerAuthException
public boolean secureResponse(JaspiMessageInfo messageInfo, Authentication validatedUser) throws ServerAuthException
ServerAuthException
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.