|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.jar.JarVerifier
Nested Class Summary | |
(package private) static class |
JarVerifier.VerifierStream
|
Field Summary | |
private boolean |
anyToVerify
|
private ByteArrayOutputStream |
baos
|
private ArrayList |
certCache
|
(package private) static sun.security.util.Debug |
debug
|
private sun.security.util.ManifestDigester |
manDig
The ManifestDigester object |
private Manifest |
manifest
|
(package private) byte[] |
manifestRawBytes
the bytes for the manDig object |
private boolean |
parsingBlockOrSF
|
private boolean |
parsingMeta
|
private ArrayList |
pendingBlocks
"queue" of pending PKCS7 blocks that we couldn't parse until we parsed the .SF file |
private Hashtable |
sigFileCerts
|
private Hashtable |
sigFileData
|
private Hashtable |
verifiedCerts
|
Constructor Summary | |
JarVerifier(Manifest manifest,
byte[] rawBytes)
|
Method Summary | |
void |
beginEntry(JarEntry je,
sun.security.util.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. |
(package private) 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. |
java.security.cert.Certificate[] |
getCerts(String name)
return an array of java.security.cert.Certificate objects for the given file in the jar. this array is not cloned. |
(package private) boolean |
nothingToVerify()
returns true if there no files to verify. |
private void |
processEntry(sun.security.util.ManifestEntryVerifier mev)
called when we reach the end of entry in one of the read() methods. |
void |
update(int n,
byte[] b,
int off,
int len,
sun.security.util.ManifestEntryVerifier mev)
update an array of bytes. |
void |
update(int b,
sun.security.util.ManifestEntryVerifier mev)
update a single byte. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final sun.security.util.Debug debug
private Hashtable verifiedCerts
private Hashtable sigFileCerts
private Hashtable sigFileData
private ArrayList pendingBlocks
private ArrayList certCache
private boolean parsingBlockOrSF
private boolean parsingMeta
private boolean anyToVerify
private Manifest manifest
private ByteArrayOutputStream baos
private sun.security.util.ManifestDigester manDig
byte[] manifestRawBytes
Constructor Detail |
public JarVerifier(Manifest manifest, byte[] rawBytes)
Method Detail |
public void beginEntry(JarEntry je, sun.security.util.ManifestEntryVerifier mev) throws IOException
IOException
public void update(int b, sun.security.util.ManifestEntryVerifier mev) throws IOException
IOException
public void update(int n, byte[] b, int off, int len, sun.security.util.ManifestEntryVerifier mev) throws IOException
IOException
private void processEntry(sun.security.util.ManifestEntryVerifier mev) throws IOException
IOException
public java.security.cert.Certificate[] getCerts(String name)
boolean nothingToVerify()
void doneWithMeta()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |