public class AccessControlProxyContext extends GCUBEProxyContext<AccessControlProxyContext.Restricted>
GCUBEProxyContext for proxies which prevent altogether
untrusted access to selected methods of the proxied objects. Access control is dynamically
established by comparing the namespace of the caller code (in the presence of inheritance,
not necessarily the caller's) with one or more namespaces of trusted code.
The latter are specified as the values of annotations of the primary
annotation class Restricted.| Modifier and Type | Class and Description |
|---|---|
static interface |
AccessControlProxyContext.Restricted
The primary annotation of the proxy associated with the context.
|
| Constructor and Description |
|---|
AccessControlProxyContext() |
| Modifier and Type | Method and Description |
|---|---|
Class<AccessControlProxyContext.Restricted> |
getAnnotationClass()
Returns the class of the primary annotation.
|
net.sf.cglib.proxy.MethodInterceptor |
getInterceptor(Object proxied)
Returns the object which will intercept calls to the proxy.
|
static void |
validateCall()
A facility for enforcing access control in the absence of a dedicated proxy.
|
getAnnotation, getProxyCaller, setAnnotation, setCallerpublic net.sf.cglib.proxy.MethodInterceptor getInterceptor(Object proxied)
getInterceptor in class GCUBEProxyContext<AccessControlProxyContext.Restricted>proxied - the proxied object.public Class<AccessControlProxyContext.Restricted> getAnnotationClass()
getAnnotationClass in class GCUBEProxyContext<AccessControlProxyContext.Restricted>public static void validateCall()
Restricted
annotation to verify that the caller of the client is trusted for that method.
It does nothing if the method has no Restricted annotation.Copyright © 2015. All Rights Reserved.