com.ibm.security12.sun.security.util
Class SignatureFile

java.lang.Object
  |
  +--com.ibm.security12.sun.security.util.SignatureFile

public class SignatureFile
extends Object


Inner Class Summary
static class SignatureFile.Block
           
 
Constructor Summary
SignatureFile(MessageDigest[] digests, Manifest mf, ManifestDigester md, String baseName, boolean signManifest)
           
 
Method Summary
 SignatureFile.Block generateBlock(PrivateKey privateKey, X509Certificate[] certChain, boolean externalSF)
           
 String getBaseName()
          get base file name
 String getMetaName()
          get .SF file name
 void write(OutputStream out)
          Writes the SignatureFile to the specified OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureFile

public SignatureFile(MessageDigest[] digests,
                     Manifest mf,
                     ManifestDigester md,
                     String baseName,
                     boolean signManifest)
Method Detail

write

public void write(OutputStream out)
           throws IOException
Writes the SignatureFile to the specified OutputStream.
Parameters:
out - the output stream
Throws:
IOException - if an I/O error has occurred

getMetaName

public String getMetaName()
get .SF file name

getBaseName

public String getBaseName()
get base file name

generateBlock

public SignatureFile.Block generateBlock(PrivateKey privateKey,
                                         X509Certificate[] certChain,
                                         boolean externalSF)
                                  throws NoSuchAlgorithmException,
                                         InvalidKeyException,
                                         IOException,
                                         SignatureException