org.springframework.security.web.authentication.preauth.websphere
Class WebSphere2SpringSecurityPropagationInterceptor
java.lang.Object
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
- Author:
- Ruud Senden
|
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(org.springframework.security.authentication.AuthenticationDetailsSource authenticationDetailsSource)
|
void |
setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebSphere2SpringSecurityPropagationInterceptor
public WebSphere2SpringSecurityPropagationInterceptor()
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(org.springframework.security.authentication.AuthenticationManager authenticationManager)
- Parameters:
authenticationManager - The authenticationManager to set.
setAuthenticationDetailsSource
public void setAuthenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource authenticationDetailsSource)
- Parameters:
authenticationDetailsSource - The authenticationDetailsSource to set.