Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.classpath.tools.jarsigner
Class HashUtils  view HashUtils download HashUtils.java

java.lang.Object
  extended bygnu.classpath.tools.jarsigner.HashUtils

class HashUtils
extends java.lang.Object

Collection of utility methods used in JAR file signing and verification.


Field Summary
private static java.util.logging.Logger log
           
private  gnu.java.security.hash.Sha160 sha
           
 
Constructor Summary
(package private) HashUtils()
           
 
Method Summary
(package private)  java.lang.String hashByteArray(byte[] ba)
           
(package private)  java.lang.String hashManifestEntry(java.lang.String name, java.lang.String entryHash)
           
(package private)  java.lang.String hashStream(java.io.InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final java.util.logging.Logger log

sha

private gnu.java.security.hash.Sha160 sha
Constructor Detail

HashUtils

HashUtils()
Method Detail

hashStream

java.lang.String hashStream(java.io.InputStream stream)
                      throws java.io.IOException

hashByteArray

java.lang.String hashByteArray(byte[] ba)
                         throws java.io.IOException

hashManifestEntry

java.lang.String hashManifestEntry(java.lang.String name,
                                   java.lang.String entryHash)
                             throws java.io.UnsupportedEncodingException