org.gcube.common.core.utils.proxies
Annotation Type AccessControlProxyContext.Restricted


@Retention(value=RUNTIME)
@Target(value=METHOD)
public static @interface AccessControlProxyContext.Restricted

The primary annotation of the proxy associated with the context. If detected upon a method of the proxied object, it will induce the proxy to control the access right of the caller. Essentially, it designates code which is trusted to access the annotated methods. Use as follows:

@Restricted("org.acme") public void someMethod() {...}

or as follows:

@Restricted({"org.acme", "com.foo.sample.MyClass"}) public void someMethod() {...}

to allow access to someMethod only from, respectively, code under org.acme and code in org.acme or in com.foo.sample.MyClass.

By default, code which is part of the gCore distribution is trusted:

@Restricted public void someMethod() {...}


Optional Element Summary
 String[] value
           
 

value

public abstract String[] value
Default:
"org.gcube.common"


Copyright © 2012. All Rights Reserved.