| java.lang.Object java.util.jar.JarVerifier
JarVerifier | class JarVerifier (Code) | | version: 1.44 07/05/05 author: Roland Schemers |
Method Summary | |
public void | beginEntry(JarEntry je, ManifestEntryVerifier mev) This method scans to see which entry we're parsing and
keeps various state information depending on what type of
file is being parsed. | void | doneWithMeta() called to let us know we have processed all the
META-INF entries, and if we re-read one of them, don't
re-process it. | public java.security.cert.Certificate[] | getCerts(String name) Return an array of java.security.cert.Certificate objects for
the given file in the jar. | public CodeSigner[] | getCodeSigners(String name) return an array of CodeSigner objects for
the given file in the jar. | boolean | nothingToVerify() returns true if there no files to verify. | public void | update(int b, ManifestEntryVerifier mev) update a single byte. | public void | update(int n, byte[] b, int off, int len, ManifestEntryVerifier mev) update an array of bytes. |
debug | final static Debug debug(Code) | | |
manifestRawBytes | byte manifestRawBytes(Code) | | the bytes for the manDig object
|
JarVerifier | public JarVerifier(byte rawBytes)(Code) | | |
beginEntry | public void beginEntry(JarEntry je, ManifestEntryVerifier mev) throws IOException(Code) | | This method scans to see which entry we're parsing and
keeps various state information depending on what type of
file is being parsed.
|
doneWithMeta | void doneWithMeta()(Code) | | called to let us know we have processed all the
META-INF entries, and if we re-read one of them, don't
re-process it. Also gets rid of any data structures
we needed when parsing META-INF entries.
|
getCodeSigners | public CodeSigner[] getCodeSigners(String name)(Code) | | return an array of CodeSigner objects for
the given file in the jar. this array is not cloned.
|
nothingToVerify | boolean nothingToVerify()(Code) | | returns true if there no files to verify.
should only be called after all the META-INF entries
have been processed.
|
update | public void update(int b, ManifestEntryVerifier mev) throws IOException(Code) | | update a single byte.
|
update | public void update(int n, byte[] b, int off, int len, ManifestEntryVerifier mev) throws IOException(Code) | | update an array of bytes.
|
|
|