Annotation Type BlacklistPath


@API(status=MAINTAINED)
@Documented
@Retention(RUNTIME)
@Target({METHOD,TYPE,ANNOTATION_TYPE})
@Repeatable(BlacklistPaths.class)
public @interface BlacklistPath
Allows to blacklist a Path, including all subpaths. The ArtemisSecurityManager will disallow any fileaccess for non-whitelisted callers outside the set of whitelisted paths. This annotation is Repeatable, and can be placed additively on the test class and test method.Different types can be set to gain more control over the mtaching paths.
Use e.g. @BlacklistPath("foo/") to disallow access to all files in the sub-directory foo of the execution directory.

This annotation overpowers any WhitelistPath annotations.

Since:
0.2.0
Version:
1.1.0
Author:
Christian Femers
See Also:
Path
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    java.lang.String value  
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    PathActionLevel level  
    PathType type