| java.lang.Object sun.security.util.ManifestEntryVerifier
ManifestEntryVerifier | public class ManifestEntryVerifier (Code) | | This class is used to verify each entry in a jar file with its
manifest value.
|
createdDigests | HashMap createdDigests(Code) | | the created digest objects
|
manifestHashes | ArrayList manifestHashes(Code) | | the manifest hashes for the digests in use
|
ManifestEntryVerifier | public ManifestEntryVerifier(Manifest man)(Code) | | Create a new ManifestEntryVerifier object.
|
getEntry | public JarEntry getEntry()(Code) | | get the JarEntry for this object
|
setEntry | public void setEntry(String name, JarEntry entry) throws IOException(Code) | | Find the hashes in the
manifest for this entry, save them, and set the MessageDigest
objects to calculate the hashes on the fly. If name is
null it signifies that update/verify should ignore this entry.
|
toHex | static String toHex(byte[] data)(Code) | | convert a byte array to a hex string for debugging purposes
Parameters: data - the binary data to be converted to a hex string an ASCII hex string |
update | public void update(byte buffer)(Code) | | update the digests for the digests we are interested in
|
update | public void update(byte buffer, int off, int len)(Code) | | update the digests for the digests we are interested in
|
verify | public java.security.cert.Certificate[] verify(Hashtable verifiedCerts, Hashtable sigFileCerts) throws JarException(Code) | | go through all the digests, calculating the final digest
and comparing it to the one in the manifest. If this is
the first time we have verified this object, remove its
Certs from sigFileCerts and place in verifiedCerts.
|
|
|