Current location - Quotes Website - Signature design - What's the use of META-INF? What's the difference between it and WEB-INF?
What's the use of META-INF? What's the difference between it and WEB-INF?
META-INF has information about the program entry, and every jar will have this folder, and the MANIFEST file in it records this information.

WEB-INF only has this folder for WEB projects, but ordinary j2se projects don't have this folder.

We classify the configuration information in the list, which can be summarized into the following categories:

I. General attributes

1. List version

Used to define the version of the manifest file, for example: Manifest-Version: 1.0.

2. Creator

Declare the generator of this file. Generally, this attribute is generated by jar command-line tools, such as: created-by: apacheant1.5.1.

3. Signature version

Defines the signed version of the jar file.

4. Class path

An application or class loader uses this value to build an internal class search path.

2. Application-related attributes

1. Major level

Defines the entry class of jar file, which must be an executable class. Once this attribute is defined, the jar file can be run through java -jar x.jar.

Three. Subview related attributes

1. Extended list

This property specifies a list of extended information required by the applet, and each name in the list corresponds to the following property.

2.& lt extension & gt- extension

3.& lt Extension & gt- Specification-Version

4.& lt Extended & gt- Implementation version

5.& lt Extension & gt- Implementation-Supplier -Id

5.& lt Extension & gt- Implementation -URL

Four. Extended identity attribute

1. extension

This attribute defines the identification of jar files, such as Extension-Name: Struts Framework.

Verb (abbreviation of verb) package extension attribute

1.Implementation-Title defines the title of the extension implementation.

2.Implementation-Version defines the version of the extension implementation.

3. Implementation-The supplier defines the organization of the extension implementation.

4.Implementation-Vendor-Id defines the identity of the organization that the extension implements.

5. Implementation -URL: defines the download address (URL) of the expansion package.

6. The specification title defines the title of the extended specification.

7.Specification-Version defines the version of the extended specification.

8. Specification-The supplier declares the organization that maintains the specification.

9.Sealed defines whether the jar file is sealed, and the value can be true or false (I don't quite understand this).

Attributes of intransitive verbs related to signature

For the signature attribute, you can refer to a passage in the mail.jar provided by JavaMail.

Name: javax/mail/Address.class

Algorithm: SHA MD5

SHA-Digest:ajr 7 rqnn//cdygou xbd 06 msvfi 4 =

MD5-Digest:zntiq 2 aqatsniowxi 1 pqpw = =

This section defines the class name of class signature, the algorithm name of computing abstraction and the corresponding abstract content (coded by BASE64 method).