com.atlassian.confluence.rpc.auth
Class TokenAuthenticationInvocationHandler

java.lang.Object
  extended by com.atlassian.confluence.rpc.auth.TokenAuthenticationInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class TokenAuthenticationInvocationHandler
extends java.lang.Object
implements java.lang.reflect.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
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
static java.lang.Object makeAuthenticatingProxy(java.lang.Object rpcService, java.lang.Class publishedInterface)
           
 void setTokenAuthenticationManager(TokenAuthenticationManager tokenAuthenticationManager)
           
 void setWrappedObject(java.lang.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 java.lang.Object makeAuthenticatingProxy(java.lang.Object rpcService,
                                                       java.lang.Class publishedInterface)
                                                throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

invoke

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

setWrappedObject

public void setWrappedObject(java.lang.Object wrappedObject)

setTokenAuthenticationManager

public void setTokenAuthenticationManager(TokenAuthenticationManager tokenAuthenticationManager)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.