Enum PolicyEditorPermissions
java.lang.Object
java.lang.Enum<PolicyEditorPermissions>
net.adoptopenjdk.icedteaweb.client.policyeditor.PolicyEditorPermissions
- All Implemented Interfaces:
Serializable, Comparable<PolicyEditorPermissions>, java.lang.constant.Constable
Defines the set of default permissions for PolicyEditor, ie the ones which are assigned
dedicated checkboxes
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PermissionActionsprivate final Stringprivate final Stringprivate final PermissionTargetprivate final PermissionType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePolicyEditorPermissions(String name, String description, PermissionType type, PermissionTarget target, PermissionActions actions) -
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyEditorPermissionsfromPermissionEntry(PolicyParser.PermissionEntry permissionEntry) A longer human-readable description for this permissiongetName()A short human-readable name for this permissiongetType()private static StringsetToActionList(String string) A full String representation of this permission as it should appear when written into a policy filestatic PolicyEditorPermissionsReturns the enum constant of this type with the specified name.static PolicyEditorPermissions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
READ_LOCAL_FILES
-
WRITE_LOCAL_FILES
-
DELETE_LOCAL_FILES
-
READ_PROPERTIES
-
WRITE_PROPERTIES
-
READ_SYSTEM_FILES
-
WRITE_SYSTEM_FILES
-
READ_TMP_FILES
-
WRITE_TMP_FILES
-
DELETE_TMP_FILES
-
JAVA_REFLECTION
-
GET_CLASSLOADER
-
ACCESS_CLASS_IN_PACKAGE
-
ACCESS_DECLARED_MEMBERS
-
ACCESS_THREADS
-
ACCESS_THREAD_GROUPS
-
NETWORK
-
EXEC_COMMANDS
-
GET_ENV
-
ALL_AWT
-
CLIPBOARD
-
PLAY_AUDIO
-
RECORD_AUDIO
-
PRINT
-
-
Field Details
-
name
-
description
-
type
-
target
-
actions
-
-
Constructor Details
-
PolicyEditorPermissions
private PolicyEditorPermissions(String name, String description, PermissionType type, PermissionTarget target, PermissionActions actions)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
A short human-readable name for this permission- Returns:
- the name of this permission
-
getDescription
A longer human-readable description for this permission- Returns:
- the description of this permission
-
getType
- Returns:
- the type of this permission, eg java.io.FilePermission
-
getTarget
- Returns:
- the target of this permission, eg ${user.home}${/}*
-
getActions
- Returns:
- the actions of this permission, eg read,write
-
toPermissionString
A full String representation of this permission as it should appear when written into a policy file- Returns:
- a policy file-ready String representation of this permission
-
setToActionList
-
fromPermissionEntry
public static PolicyEditorPermissions fromPermissionEntry(PolicyParser.PermissionEntry permissionEntry)
-