Compact CAP File and Manifest File Syntax
A CAP file utilizes the JAR file format, and contains a set of components that
describe a Java language package. In addition to the components, the CAP file also
contains the manifest file META-INF/MANIFEST.MF
. The manifest file
provides additional human-readable information regarding the contents of the CAP file
and the package that it represents. You can use this information to facilitate the
distribution and processing of the CAP file.
The following information applies to the version 2.3 compact CAP files and versions 2.2 or 2.1 CAP files generated with the Converter.
The information in the manifest file is presented in name:value pairs. These name:value pairs are described in Name:Value Pairs in the MANIFEST.MF File .
Table 5-1 Name:Value Pairs in the MANIFEST.MF File
Name | Value |
---|---|
|
Creation time of CAP file. For example:
The format of the time stamp is operating system-dependent. |
|
The version of the converter tool. Default:
|
|
Provider of the converter tool. For example:
|
|
CAP file major.minor version. Possible values are:
|
|
The major.minor version of package. For
example: |
|
AID for the package. For example:
|
|
The fully-qualified package name in dot (.) format. For
example: |
|
The AID for applet n. For example:
|
|
Simple class name for applet n. For example:
|
|
The AID for imported package n. For example:
|
|
The major.minor version of imported
package n. For example: |
|
Can be |
The properties in the manifest file include:
-
The names
Java-Card-Applet-<n>-AID
andJava-Card-Applet-<n>-Name
refer to the same applet. -
The converter assigns numbers for the
Java-Card-Applet-<n>-NAME
andJava-Card-Applet-<n>-AID
names in sequential order, beginning with 1. -
The names
Java-Card-Imported-Package-<n>-AID
andJava-Card-Imported-Package-<n>-Version
refer to the same package. -
The converter assigns numbers for the
Java-Card-Imported-Package-<n>-AID
andJava-Card-Imported-Package-<n>-AID
names in sequential order, beginning with 1.