public final class StrictJarFile extends Object
| Constructor and Description |
|---|
StrictJarFile(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ZipEntry |
findEntry(String name) |
Certificate[][] |
getCertificateChains(ZipEntry ze)
Return all certificate chains for a given
ZipEntry belonging to this jar. |
Certificate[] |
getCertificates(ZipEntry ze)
Deprecated.
Switch callers to use getCertificateChains instead
|
InputStream |
getInputStream(ZipEntry ze) |
Manifest |
getManifest() |
String |
getName() |
Iterator<ZipEntry> |
iterator() |
public StrictJarFile(String fileName) throws IOException, SecurityException
IOExceptionSecurityExceptionpublic String getName()
public Manifest getManifest()
public Iterator<ZipEntry> iterator() throws IOException
IOExceptionpublic Certificate[][] getCertificateChains(ZipEntry ze)
ZipEntry belonging to this jar.
This method MUST be called only after fully exhausting the InputStream belonging
to this entry.
Returns null if this jar file isn't signed or if this method is
called before the stream is processed.@Deprecated public Certificate[] getCertificates(ZipEntry ze)
ZipEntry belonging to this jar.
This method MUST be called only after fully exhausting the InputStream belonging
to this entry.
Returns null if this jar file isn't signed or if this method is
called before the stream is processed.public InputStream getInputStream(ZipEntry ze)
public void close()
throws IOException
IOException