Enum Class SecurityDesc.RequestedPermissionLevel

java.lang.Object
java.lang.Enum<SecurityDesc.RequestedPermissionLevel>
net.sourceforge.jnlp.SecurityDesc.RequestedPermissionLevel
All Implemented Interfaces:
Serializable, Comparable<SecurityDesc.RequestedPermissionLevel>, 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.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static SecurityDesc.RequestedPermissionLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SecurityDesc.RequestedPermissionLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toJnlpString

      public String 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

      public String 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

      public SecurityDesc.RequestedPermissionLevel fromJnlpString(String jnlpString)
      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

      public SecurityDesc.RequestedPermissionLevel fromHtmlString(String htmlString)
      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