Enum AppletPermissionLevel

java.lang.Object
java.lang.Enum<AppletPermissionLevel>
net.adoptopenjdk.icedteaweb.jnlp.element.security.AppletPermissionLevel
All Implemented Interfaces:
Serializable, Comparable<AppletPermissionLevel>, java.lang.constant.Constable

public enum AppletPermissionLevel extends Enum<AppletPermissionLevel>
Specifies the level of permissions that the applet needs to run. Specify "sandbox" for the value to run in the sandbox. Specify "all-permissions" to run outside the sandbox.

Applet permissions are specified in the applet html page file as sub element <param name="permissions" value="sandbox"/> of the applet tag. If this parameter is omitted, default is assumed which is determined by the Permissions attribute in the manifest for the main JAR file. (see https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/applet_dev_guide.html#JSDPG709).

or the Permissions: sandbox attribute in the manifest for the main JAR file.

See Also:
  • Enum Constant Details

    • ALL

      public static final AppletPermissionLevel ALL
      The all-permissions indicates that the RIA needs full access the the local system and network.
    • SANDBOX

      public static final AppletPermissionLevel SANDBOX
      Indicates that the RIA runs in the security sandbox and does not require additional permissions.
    • DEFAULT

      public static final AppletPermissionLevel DEFAULT
      Indicates that the level of permissions is determined by the Permissions attribute in the manifest for the main JAR file.
    • NONE

      @Deprecated public static final AppletPermissionLevel NONE
      Deprecated.
      Indicates that no applet permissions are specified.
  • Field Details

    • value

      private final String value
  • Constructor Details

    • AppletPermissionLevel

      private AppletPermissionLevel(String value)
  • Method Details

    • values

      public static AppletPermissionLevel[] 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

      public static AppletPermissionLevel valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()