ch.elca.el4j.services.security.authentication
Class AuthenticationServiceContextPasser

java.lang.Object
  extended by ch.elca.el4j.core.contextpassing.AbstractImplicitContextPasser
      extended by ch.elca.el4j.services.security.authentication.AuthenticationServiceContextPasser
All Implemented Interfaces:
ImplicitContextPasser, BeanNameAware, InitializingBean
Direct Known Subclasses:
SecureUsernamePasswordAuthenticationServiceContextPasser

public class AuthenticationServiceContextPasser
extends AbstractImplicitContextPasser

The ImplicitContextPasser for the AuthenticationService. It handles the passing of the AuthenticationData and stores it in a ThreadLocal.

Author:
Raphael Boog (RBO), Andreas Pfenninger (APR), Dominik Zindel (DZI)
File-location:
AuthenticationServiceContextPasser
Last check-in date:
2010-01-15 12:21:07 +0100 (Fr, 15. Jan 2010) by jonasha for revision 4091

Constructor Summary
AuthenticationServiceContextPasser()
           
 
Method Summary
 Object getImplicitlyPassedContext()
          This method is called by the client that makes a remote invocation to collect the implicitly passed context and add it to the request.
 void pushImplicitlyPassedContext(Object context)
          This method is called by the server that receives a remote invocation to push the context to the service.
 
Methods inherited from class ch.elca.el4j.core.contextpassing.AbstractImplicitContextPasser
afterPropertiesSet, getBeanName, setBeanName, setImplicitContextPassingRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationServiceContextPasser

public AuthenticationServiceContextPasser()
Method Detail

getImplicitlyPassedContext

public Object getImplicitlyPassedContext()
This method is called by the client that makes a remote invocation to collect the implicitly passed context and add it to the request. The authentication data is fetched from the SecurityContextHolder.

Returns:
The authentication data for the currently logged in user
See Also:
AbstractImplicitContextPasser

pushImplicitlyPassedContext

public void pushImplicitlyPassedContext(Object context)
This method is called by the server that receives a remote invocation to push the context to the service. The authentication data is stored in the SecurityContextHolder.

Parameters:
context - The received implicit context for this passer.
Throws:
ImplicitContextPassingRTException
See Also:
AbstractImplicitContextPasser


Copyright © 2005-2011 ELCA. All Rights Reserved.