Enum PermissionTarget
- java.lang.Object
-
- java.lang.Enum<PermissionTarget>
-
- net.adoptopenjdk.icedteaweb.client.policyeditor.PermissionTarget
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PermissionTarget>
public enum PermissionTarget extends java.lang.Enum<PermissionTarget>
Defines the set of targets required for the default permissions
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_CLASS_IN_PACKAGEACCESS_THREAD_GROUPSACCESS_THREADSALLALL_FILESCLASSLOADERCLIPBOARDDECLARED_MEMBERSGETENVNONEPLAYPRINTRECORDREFLECTTMPDIRUSER_HOME
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringtarget
-
Constructor Summary
Constructors Modifier Constructor Description privatePermissionTarget(java.lang.String target)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionTargetfromString(java.lang.String string)If there is any target that matches the string, return it.static PermissionTargetvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PermissionTarget[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final PermissionTarget NONE
-
ALL
public static final PermissionTarget ALL
-
ALL_FILES
public static final PermissionTarget ALL_FILES
-
USER_HOME
public static final PermissionTarget USER_HOME
-
TMPDIR
public static final PermissionTarget TMPDIR
-
CLIPBOARD
public static final PermissionTarget CLIPBOARD
-
PRINT
public static final PermissionTarget PRINT
-
PLAY
public static final PermissionTarget PLAY
-
RECORD
public static final PermissionTarget RECORD
-
REFLECT
public static final PermissionTarget REFLECT
-
GETENV
public static final PermissionTarget GETENV
-
ACCESS_THREADS
public static final PermissionTarget ACCESS_THREADS
-
ACCESS_THREAD_GROUPS
public static final PermissionTarget ACCESS_THREAD_GROUPS
-
ACCESS_CLASS_IN_PACKAGE
public static final PermissionTarget ACCESS_CLASS_IN_PACKAGE
-
DECLARED_MEMBERS
public static final PermissionTarget DECLARED_MEMBERS
-
CLASSLOADER
public static final PermissionTarget CLASSLOADER
-
-
Method Detail
-
values
public static PermissionTarget[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PermissionTarget c : PermissionTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionTarget valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fromString
public static PermissionTarget fromString(java.lang.String string)
If there is any target that matches the string, return it. If no matches, return NONE;- Parameters:
string- a permission target value- Returns:
- the closest matching default targets value
-
-