com.ibm.security12.sun.security.util
Class SignatureFileVerifier
java.lang.Object
|
+--com.ibm.security12.sun.security.util.SignatureFileVerifier
- public class SignatureFileVerifier
- extends Object
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SignatureFileVerifier
public SignatureFileVerifier(ArrayList certCache,
ManifestDigester md,
String name,
byte[] rawBytes)
throws IOException
- Create the named SignatureFileVerifier.
- Parameters:
name
- the name of the signature block file (.DSA/.RSA)rawBytes
- the raw bytes of the signature block file
needSignatureFileBytes
public boolean needSignatureFileBytes()
- returns true if we need the .SF file
needSignatureFile
public boolean needSignatureFile(String name)
- returns true if we need this .SF file.
- Parameters:
name
- the name of the .SF file without the extension
setSignatureFile
public void setSignatureFile(byte[] sfBytes)
- used to set the raw bytes of the .SF file when it
is external to the signature block file.
process
public void process(Hashtable certificates)
throws IOException,
SignatureException,
NoSuchAlgorithmException,
JarException
- process the signature block file. Goes through the .SF file
and adds certificates for each section where the .SF section
hash was verified against the Manifest section.