com.atlassian.confluence.rpc.auth
Class TokenAuthenticationInvocationHandler

java.lang.Object
  extended bycom.atlassian.confluence.rpc.auth.TokenAuthenticationInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class TokenAuthenticationInvocationHandler
extends Object
implements InvocationHandler

A neat little interceptor to handle token based authentication and login/logout.

The token timeouts can be controlled from Spring configuration, default is 30 minutes.


Constructor Summary
TokenAuthenticationInvocationHandler()
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
static Object makeAuthenticatingProxy(Object rpcService, String publishedInterface)
           
 void setTokenAuthenticationManager(TokenAuthenticationManager tokenAuthenticationManager)
           
 void setWrappedObject(Object wrappedObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenAuthenticationInvocationHandler

public TokenAuthenticationInvocationHandler()
Method Detail

makeAuthenticatingProxy

public static Object makeAuthenticatingProxy(Object rpcService,
                                             String publishedInterface)
                                      throws ClassNotFoundException
Throws:
ClassNotFoundException

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

setWrappedObject

public void setWrappedObject(Object wrappedObject)

setTokenAuthenticationManager

public void setTokenAuthenticationManager(TokenAuthenticationManager tokenAuthenticationManager)


Confluence is developed by Atlassian.