Enum PermissionType
- java.lang.Object
-
- java.lang.Enum<PermissionType>
-
- net.adoptopenjdk.icedteaweb.client.policyeditor.PermissionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PermissionType>
public enum PermissionType extends java.lang.Enum<PermissionType>
Defines the set of types required for the default permissions
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUDIO_PERMISSIONAWT_PERMISSIONFILE_PERMISSIONNONEPROPERTY_PERMISSIONREFLECT_PERMISSIONRUNTIME_PERMISSIONSOCKET_PERMISSION
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringtype
-
Constructor Summary
Constructors Modifier Constructor Description privatePermissionType(java.lang.String type)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionTypefromString(java.lang.String string)If there is any type that matches the string, return it.static PermissionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PermissionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final PermissionType NONE
-
FILE_PERMISSION
public static final PermissionType FILE_PERMISSION
-
PROPERTY_PERMISSION
public static final PermissionType PROPERTY_PERMISSION
-
AWT_PERMISSION
public static final PermissionType AWT_PERMISSION
-
SOCKET_PERMISSION
public static final PermissionType SOCKET_PERMISSION
-
RUNTIME_PERMISSION
public static final PermissionType RUNTIME_PERMISSION
-
AUDIO_PERMISSION
public static final PermissionType AUDIO_PERMISSION
-
REFLECT_PERMISSION
public static final PermissionType REFLECT_PERMISSION
-
-
Method Detail
-
values
public static PermissionType[] 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 (PermissionType c : PermissionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionType 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 PermissionType fromString(java.lang.String string)
If there is any type that matches the string, return it. If no matches, return NONE.- Parameters:
string- a permission type value- Returns:
- the closest matching default permission type
-
-