jarify
Class JarSignatureFile

java.lang.Object
  extended by jarify.JarFileEntry
      extended by jarify.JarManifest
          extended by jarify.JarSignatureFile

final class JarSignatureFile
extends JarManifest


Field Summary
private  java.util.Hashtable manifestdigests
           
 
Fields inherited from class jarify.JarManifest
contentStrRaw, newLine
 
Fields inherited from class jarify.JarFileEntry
name
 
Constructor Summary
JarSignatureFile(java.lang.String name, long size, java.io.InputStream stream)
          Constructor
 
Method Summary
 java.lang.String getAlias()
          Returns the alias for this signature file.
 java.lang.String getManifestDigest(java.lang.String digestID)
          Returns the digest for the manifest file.
 java.util.Vector getManifestDigestList()
           
private  void parseManifestDigests()
           
 
Methods inherited from class jarify.JarManifest
getDigest, getDigest, getDigestList, getEntry, getFileNames, init
 
Methods inherited from class jarify.JarFileEntry
getContent, getName, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manifestdigests

private java.util.Hashtable manifestdigests
Constructor Detail

JarSignatureFile

public JarSignatureFile(java.lang.String name,
                        long size,
                        java.io.InputStream stream)
Constructor

Parameters:
name - The fill path name to the signature file.
size - The size of the signature file.
stream - The input stream for this signature file.
Method Detail

parseManifestDigests

private void parseManifestDigests()

getManifestDigest

public java.lang.String getManifestDigest(java.lang.String digestID)
Returns the digest for the manifest file. NOTE: You have to specify the full digest string in the parameter digestID. This String is used to find the digest for the manifest file.

Parameters:
digestID - Something like SHA1-Digest or MD5-Digest
Returns:
The digest for this file in a String format or null if file or digest were not found.
See Also:
JarConstants

getManifestDigestList

public java.util.Vector getManifestDigestList()

getAlias

public java.lang.String getAlias()
Returns the alias for this signature file.

Returns:
The Alias for this signature file or null if there was an error;