Searched refs:manifest (Results 1 - 14 of 14) sorted by relevance

/libcore/luni/src/main/java/java/util/jar/
H A DJarOutputStream.java31 private Manifest manifest; field in class:JarOutputStream
40 * @param manifest
45 public JarOutputStream(OutputStream os, Manifest manifest) throws IOException { argument
47 if (manifest == null) {
48 throw new NullPointerException("manifest == null");
50 this.manifest = manifest;
53 this.manifest.write(this);
H A DJarInputStream.java39 // class will silently skip certificate checks for jar files where the manifest
43 private Manifest manifest; field in class:JarInputStream
80 // Fetch the next entry, in the hope that it's the manifest file.
87 manifest = new Manifest(manifestBytes, verify);
93 verifier = new JarVerifier("JarInputStream", manifest, metaEntries);
97 // There was no manifest available, so we should return the current
102 // If the manifest isn't the first entry, we will not have enough
106 // TODO: We need all meta entries to be placed before the manifest
125 * JarInputStream} or {@code null} if no manifest entry exists.
130 return manifest;
[all...]
H A DJarFile.java47 // The directory containing the manifest.
50 // The manifest after it has been read from the JAR.
51 private Manifest manifest; field in class:JarFile
206 // Verification is possible *only* if the JAR file contains a manifest
211 // We silently skip verification for files that have no manifest or
215 // We create the manifest straight away, so that we can create
217 manifest = new Manifest(metaEntries.get(MANIFEST_NAME), true);
218 verifier = new JarVerifier(getName(), manifest, metaEntries);
294 if (manifest != null) {
295 return manifest;
[all...]
H A DManifest.java62 * The end of the main attributes section in the manifest is needed in
189 * Merges name/attribute pairs read from the input stream {@code is} into this manifest.
194 * If an error occurs reading the manifest.
256 * Writes out the attribute information of the specified manifest to the
259 * @param manifest
260 * the manifest to write out.
266 static void write(Manifest manifest, OutputStream out) throws IOException { argument
271 String version = manifest.mainAttributes.getValue(versionName);
274 version = manifest.mainAttributes.getValue(versionName);
278 Iterator<?> entries = manifest
[all...]
H A DJarVerifier.java48 * files) agree with the JAR entries information found in the JAR manifest.
64 private final Manifest manifest; field in class:JarVerifier
119 * Verifies that the digests stored in the manifest match the decrypted
125 * if the digest value stored in the manifest does <i>not</i>
154 JarVerifier(String name, Manifest manifest, HashMap<String, byte[]> metaEntries) { argument
156 this.manifest = manifest;
158 this.mainAttributesEnd = manifest.getMainAttributesEnd();
174 // If no manifest is present by the time an entry is found,
177 if (manifest
[all...]
H A DStrictJarFile.java49 private final Manifest manifest; field in class:StrictJarFile
66 this.manifest = new Manifest(metaEntries.get(JarFile.MANIFEST_NAME), true);
67 this.verifier = new JarVerifier(fileName, manifest, metaEntries);
68 Set<String> files = this.manifest.getEntries().keySet();
71 throw new SecurityException(fileName + ": File " + file + " in manifest does not exist");
86 return manifest;
H A DJarEntry.java33 * Represents a single file in a JAR archive together with the manifest
105 Manifest manifest = parentJar.getManifest();
106 if (manifest == null) {
109 return attributes = manifest.getAttributes(getName());
/libcore/support/src/test/java/tests/util/
H A DClassLoaderBuilder.java128 URL manifest = classLoader.getResource(manifestFile);
129 if (manifest != null) {
130 String manifestString = manifest.toString();
/libcore/luni/src/main/java/java/net/
H A DURLClassLoader.java302 Manifest manifest = jf.getManifest();
303 return createClass(entry, manifest, packageName, origName);
330 private Class<?> createClass(JarEntry entry, Manifest manifest, String packageName, String origName) { argument
342 if (manifest != null) {
343 definePackage(packageDotName, manifest,
351 if (manifest != null) {
352 if (isSealed(manifest, packageName + "/")) {
444 // TODO : to think what we should do with indexes & manifest.class file here
879 Manifest manifest = jf.getManifest();
880 if (manifest !
911 definePackage(String packageName, Manifest manifest, URL url) argument
964 isSealed(Manifest manifest, String dirName) argument
[all...]
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldManifestTest.java48 private void checkManifest(Manifest manifest) { argument
49 Attributes main = manifest.getMainAttributes();
85 Manifest manifest = new Manifest(new URL(Support_Resources
86 .getURL("manifest/hyts_MANIFEST.MF")).openStream());
87 Manifest manifestClone = (Manifest) manifest.clone();
94 "manifest/hyts_MANIFEST.MF")).openStream());
96 "manifest/hyts_MANIFEST.MF")).openStream());
111 .getURL("manifest/hyts_MANIFEST.MF")).openStream());
145 // If you write a manifest with no MANIFEST_VERSION, your attributes don't get written out.
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLClassLoaderTest.java138 Manifest manifest = new Manifest();
151 Package pack = tucl.definePackage(packageName + i, manifest, urls[i]);
162 tucl.definePackage(packageName + "0", manifest, null);
H A DOldJarURLConnectionTest.java103 Manifest manifest = juc.getManifest();
104 Map<String, Attributes> attr = manifest.getEntries();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
H A DManifestTest.java44 private final String MANIFEST_NAME = "manifest/hyts_MANIFEST.MF";
98 private void checkManifest(Manifest manifest) { argument
99 Attributes main = manifest.getMainAttributes();
136 Manifest manifest = new Manifest(new ByteArrayInputStream(
138 checkManifest(manifest);
H A DJarFileTest.java506 assertNotNull("Should find manifest without verifying", jarFile
515 Manifest manifest = new Manifest();
516 Attributes attributes = manifest.getMainAttributes();
519 manifest.write(manOut);
537 assertNotNull("Should find manifest without verifying", jar

Completed in 153 milliseconds