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

java.lang.Object
  extended by org.springframework.security.web.authentication.preauth.websphere.WebSphere2SpringSecurityPropagationInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class WebSphere2SpringSecurityPropagationInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor

This method interceptor can be used in front of arbitrary Spring beans to make a Spring SecurityContext available to the bean, based on the current WebSphere credentials.

Since:
1.0

Constructor Summary
WebSphere2SpringSecurityPropagationInterceptor()
           
 
Method Summary
 Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
          Authenticate with Spring Security based on WebSphere credentials before proceeding with method invocation, and clean up the Spring Security Context after method invocation finishes.
 void setAuthenticationDetailsSource(AuthenticationDetailsSource authenticationDetailsSource)
           
 void setAuthenticationManager(AuthenticationManager authenticationManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSphere2SpringSecurityPropagationInterceptor

public WebSphere2SpringSecurityPropagationInterceptor()
Method Detail

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
              throws Throwable
Authenticate with Spring Security based on WebSphere credentials before proceeding with method invocation, and clean up the Spring Security Context after method invocation finishes.

Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable
See Also:
MethodInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)

setAuthenticationManager

public void setAuthenticationManager(AuthenticationManager authenticationManager)
Parameters:
authenticationManager - The authenticationManager to set.

setAuthenticationDetailsSource

public void setAuthenticationDetailsSource(AuthenticationDetailsSource authenticationDetailsSource)
Parameters:
authenticationDetailsSource - The authenticationDetailsSource to set.