Package de.tum.in.test.api
Annotation Type WhitelistPath
@API(status=MAINTAINED)
@Documented
@Retention(RUNTIME)
@Target({METHOD,TYPE,ANNOTATION_TYPE})
@Repeatable(WhitelistPaths.class)
public @interface WhitelistPath
Allows to whitelist a
Use e.g.
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.
@WhitelistPath("") to allow access to all files in the
execution directory.
If this annotation is not present, no access to any paths is granted.
- 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.Stringvalue -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description PathActionLevellevelPathTypetype
-
Element Details
-
value
java.lang.String value
-
-
-
type
PathType type- Default:
- STARTS_WITH
-
level
PathActionLevel level- Default:
- READ
-