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