Package net.sourceforge.jnlp
Enum SecurityDesc.RequestedPermissionLevel
java.lang.Object
java.lang.Enum<SecurityDesc.RequestedPermissionLevel>
net.sourceforge.jnlp.SecurityDesc.RequestedPermissionLevel
- All Implemented Interfaces:
Serializable
,Comparable<SecurityDesc.RequestedPermissionLevel>
,java.lang.constant.Constable
- Enclosing class:
- SecurityDesc
public static enum SecurityDesc.RequestedPermissionLevel
extends Enum<SecurityDesc.RequestedPermissionLevel>
Represents the security level requested by an applet/application, as specified in its JNLP or HTML.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfromHtmlString
(String htmlString) The HTML permission level corresponding to the given String.fromJnlpString
(String jnlpString) The JNLP permission level corresponding to the given String.This permission level, as it would appear requested in an HTML file.This permission level, as it would appear requested in a JNLP file.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
DEFAULT
-
SANDBOX
-
J2EE
-
ALL
-
-
Field Details
-
PERMISSIONS_NAME
- See Also:
-
-
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
-
toJnlpString
This permission level, as it would appear requested in a JNLP file. null if this level is NONE (unspecified) or cannot be requested in a JNLP file.- Returns:
- the String level
-
toHtmlString
This permission level, as it would appear requested in an HTML file. null if this level is NONE (unspecified) or cannot be requested in an HTML file.- Returns:
- the String level
-
fromJnlpString
The JNLP permission level corresponding to the given String. If null is given, null comes back. If there is no permission level that can be granted in JNLP matching the given String, null is also returned.- Parameters:
jnlpString
- the JNLP permission String- Returns:
- the matching RequestedPermissionLevel
-
fromHtmlString
The HTML permission level corresponding to the given String. If null is given, null comes back. If there is no permission level that can be granted in HTML matching the given String, null is also returned.- Parameters:
htmlString
- the JNLP permission String- Returns:
- the matching RequestedPermissionLevel
-