Class LowPrivilegeThreadPermissionVerifier
java.lang.Object
com.atlassian.bamboo.specs.maven.sandbox.AbstractThreadPermissionVerifier
com.atlassian.bamboo.specs.maven.sandbox.LowPrivilegeThreadPermissionVerifier
- All Implemented Interfaces:
ThreadPermissionVerifier
A permission checker with very limited set of allowed permissions.
-
Constructor Summary
ConstructorDescriptionLowPrivilegeThreadPermissionVerifier
(@Nullable Path allowedReadDirectory, @Nullable Path allowedReadWriteDirectory) Permission verifier. -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPermissionFor
(Permission perm) This method will get invoked if a standard Applet security manager declined access.Methods inherited from class com.atlassian.bamboo.specs.maven.sandbox.AbstractThreadPermissionVerifier
checkPermission, checkPermission
-
Constructor Details
-
LowPrivilegeThreadPermissionVerifier
public LowPrivilegeThreadPermissionVerifier(@Nullable @Nullable Path allowedReadDirectory, @Nullable @Nullable Path allowedReadWriteDirectory) Permission verifier.- Parameters:
allowedReadDirectory
- read access will be restricted to this directory.allowedReadWriteDirectory
- write access will be restricted to this directory.
-
-
Method Details
-
checkPermissionFor
Description copied from class:AbstractThreadPermissionVerifier
This method will get invoked if a standard Applet security manager declined access. You can use it to grant additional access on top of applet access.- Specified by:
checkPermissionFor
in classAbstractThreadPermissionVerifier
-