com.atlassian.confluence.rpc.auth
Class TokenAuthenticationInvocationHandler
java.lang.Object
com.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenAuthenticationInvocationHandler
public TokenAuthenticationInvocationHandler()
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)