Enum ManifestAttributes

java.lang.Object
java.lang.Enum<ManifestAttributes>
net.adoptopenjdk.icedteaweb.manifest.ManifestAttributes
All Implemented Interfaces:
Serializable, Comparable<ManifestAttributes>, java.lang.constant.Constable

public enum ManifestAttributes extends Enum<ManifestAttributes>
The JAR file manifest contains information about the contents of the JAR file, including security and configuration information. These attributes apply to signed applets and Web Start applications.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The Application-Library-Allowable-Codebase attribute identifies the locations where your signed RIA is expected to be found.
    The Application-Name attribute is used in security prompts to provide a title for your signed RIA.
    The Caller-Allowable-Codebase attribute is used to identify the domains from which JavaScript code can make calls to your RIA without security prompts.
    The Codebase attribute is used to restrict the code base of the JAR file to specific domains.
    The Entry-Point attribute is used to identify the classes that are allowed to be used as entry points to your RIA.
    The Permissions attribute is used to verify that the permissions level requested by the RIA when it runs matches the permissions level that was set when the JAR file was created.
    The Trusted-Library attribute is used for applications and applets that are designed to allow untrusted components.
    The Trusted-Only attribute is used to prevent untrusted classes or resources from being loaded for an applet or application.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PERMISSIONS

      public static final ManifestAttributes PERMISSIONS
      The Permissions attribute is used to verify that the permissions level requested by the RIA when it runs matches the permissions level that was set when the JAR file was created.
    • CODEBASE

      public static final ManifestAttributes CODEBASE
      The Codebase attribute is used to restrict the code base of the JAR file to specific domains. Use this attribute to prevent someone from re-deploying your application on another website for malicious purposes.
    • APPLICATION_NAME

      public static final ManifestAttributes APPLICATION_NAME
      The Application-Name attribute is used in security prompts to provide a title for your signed RIA. Use of this attribute is recommended to help users make the decision to trust and run the RIA.
    • APPLICATION_LIBRARY_ALLOWABLE_CODEBASE

      public static final ManifestAttributes APPLICATION_LIBRARY_ALLOWABLE_CODEBASE
      The Application-Library-Allowable-Codebase attribute identifies the locations where your signed RIA is expected to be found.
    • CALLER_ALLOWABLE_CODEBASE

      public static final ManifestAttributes CALLER_ALLOWABLE_CODEBASE
      The Caller-Allowable-Codebase attribute is used to identify the domains from which JavaScript code can make calls to your RIA without security prompts. Set this attribute to the domain that hosts the JavaScript code.
    • ENTRY_POINT

      public static final ManifestAttributes ENTRY_POINT
      The Entry-Point attribute is used to identify the classes that are allowed to be used as entry points to your RIA. Identifying the entry points helps to prevent unauthorized code from being run when a JAR file has more than one class with a main() method, multiple Applet classes, or multiple JavaFX Application classes. Set this attribute to the fully qualified class name that can be used as the entry point for the RIA. To specify more than one class, separate the classes by a space.
    • TRUSTED_ONLY

      public static final ManifestAttributes TRUSTED_ONLY
      The Trusted-Only attribute is used to prevent untrusted classes or resources from being loaded for an applet or application.
    • TRUSTED_LIBRARY

      public static final ManifestAttributes TRUSTED_LIBRARY
      The Trusted-Library attribute is used for applications and applets that are designed to allow untrusted components.
  • Field Details

    • name

      private final String name
  • Constructor Details

    • ManifestAttributes

      private ManifestAttributes(String name)
  • Method Details

    • values

      public static ManifestAttributes[] 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 ManifestAttributes 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ManifestAttributes>