org.springframework.security.web.authentication.preauth.websphere
Class WebSpherePreAuthenticatedProcessingFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
          extended by org.springframework.security.web.authentication.preauth.websphere.WebSpherePreAuthenticatedProcessingFilter
All Implemented Interfaces:
javax.servlet.Filter, BeanNameAware, DisposableBean, InitializingBean, ApplicationEventPublisherAware, ServletContextAware

public class WebSpherePreAuthenticatedProcessingFilter
extends AbstractPreAuthenticatedProcessingFilter

This AbstractPreAuthenticatedProcessingFilter implementation is based on WebSphere authentication. It will use the WebSphere RunAs user principal name as the pre-authenticated principal.

Since:
2.0

Field Summary
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
WebSpherePreAuthenticatedProcessingFilter()
          Public constructor which overrides the default AuthenticationDetails class to be used.
 
Method Summary
protected  Object getPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest httpRequest)
          For J2EE container-based authentication there is no generic way to retrieve the credentials, as such this method returns a fixed dummy value.
protected  Object getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest httpRequest)
          Return the WebSphere user name.
 
Methods inherited from class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
afterPropertiesSet, doFilter, getAuthenticationDetailsSource, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationManager, setCheckForPrincipalChanges, setContinueFilterChainOnUnsuccessfulAuthentication, setInvalidateSessionOnPrincipalChange, successfulAuthentication, unsuccessfulAuthentication
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSpherePreAuthenticatedProcessingFilter

public WebSpherePreAuthenticatedProcessingFilter()
Public constructor which overrides the default AuthenticationDetails class to be used.

Method Detail

getPreAuthenticatedPrincipal

protected Object getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest httpRequest)
Return the WebSphere user name.

Specified by:
getPreAuthenticatedPrincipal in class AbstractPreAuthenticatedProcessingFilter

getPreAuthenticatedCredentials

protected Object getPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest httpRequest)
For J2EE container-based authentication there is no generic way to retrieve the credentials, as such this method returns a fixed dummy value.

Specified by:
getPreAuthenticatedCredentials in class AbstractPreAuthenticatedProcessingFilter