Enum ManifestAttributes
- All Implemented Interfaces:
Serializable, Comparable<ManifestAttributes>, java.lang.constant.Constable
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 ConstantsEnum ConstantDescriptionThe 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoString()static ManifestAttributesReturns 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.
-
Enum Constant Details
-
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
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
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
The Application-Library-Allowable-Codebase attribute identifies the locations where your signed RIA is expected to be found. -
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
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
The Trusted-Only attribute is used to prevent untrusted classes or resources from being loaded for an applet or application. -
TRUSTED_LIBRARY
The Trusted-Library attribute is used for applications and applets that are designed to allow untrusted components.
-
-
Field Details
-
name
-
-
Constructor Details
-
ManifestAttributes
-
-
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
-
toString
- Overrides:
toStringin classEnum<ManifestAttributes>
-