public SignatureFile(Manifest manifest,String name) throws JarException {
  this(name,true);
  this.manifest=manifest;
  Enumeration<MessageHeader> enum_=manifest.entries();
  while (enum_.hasMoreElements()) {
    MessageHeader mh=enum_.nextElement();
    String entryName=mh.findValue("Name");
    if (entryName != null) {
      add(entryName);
    }
  }
}

public SignatureFile ( Manifest manifest , String name ) throws JarException { this ( name , true ) ; this . manifest = manifest ; Enumeration < MessageHeader > enum_ = manifest . entries ( ) ; while ( enum_ . hasMoreElements ( ) ) { MessageHeader mh = enum_ . nextElement ( ) ; String entryName = mh . findValue ( "Name" ) ; if ( entryName != null ) { add ( entryName ) ; } } }
constructs a new signature file corresponding to a given manifest . all entries in the manifest are signed .
