Enum ManifestAttributes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ManifestAttributes>

    public enum ManifestAttributes
    extends java.lang.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.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      APPLICATION_LIBRARY_ALLOWABLE_CODEBASE
      The Application-Library-Allowable-Codebase attribute identifies the locations where your signed RIA is expected to be found.
      APPLICATION_NAME
      The Application-Name attribute is used in security prompts to provide a title for your signed RIA.
      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.
      CODEBASE
      The Codebase attribute is used to restrict the code base of the JAR file to specific domains.
      ENTRY_POINT
      The Entry-Point attribute is used to identify the classes that are allowed to be used as entry points to your RIA.
      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.
      TRUSTED_LIBRARY
      The Trusted-Library attribute is used for applications and applets that are designed to allow untrusted components.
      TRUSTED_ONLY
      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 java.lang.String name  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ManifestAttributes​(java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      static ManifestAttributes valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ManifestAttributes[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • ManifestAttributes

        private ManifestAttributes​(java.lang.String name)
    • Method Detail

      • values

        public static ManifestAttributes[] 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 (ManifestAttributes c : ManifestAttributes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ManifestAttributes 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 name
        java.lang.NullPointerException - if the argument is null
      • toString

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