Package se.litsec.opensaml.utils.spring
Class ResourceProxy
- java.lang.Object
-
- se.litsec.opensaml.utils.spring.ResourceProxy
-
- All Implemented Interfaces:
InvocationHandler
public class ResourceProxy extends Object implements InvocationHandler
An invocation handler that is used to proxy from a OpenSAMLResourceto a SpringResource.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectinvoke(Object proxy, Method method, Object[] args)static Resourceproxy(org.springframework.core.io.Resource resource)Creates a proxy that proxies calls to the OpenSAMLResourceinterface to an implementation of a SpringResourceinterface.
-
-
-
Method Detail
-
proxy
public static Resource proxy(org.springframework.core.io.Resource resource)
Creates a proxy that proxies calls to the OpenSAMLResourceinterface to an implementation of a SpringResourceinterface.- Parameters:
resource- the target resource (Spring)- Returns:
- a proxy implementing the OpenSAML
Resourceinterface
-
-