DecryptionPasswordNeeded Event
Fires when the class needs a password to decrypt the archive.
Syntax
public class DefaultArchivewriterEventListener implements ArchivewriterEventListener { ... public void decryptionPasswordNeeded(ArchivewriterDecryptionPasswordNeededEvent e) {} ... } public class ArchivewriterDecryptionPasswordNeededEvent { public String passwordTarget; public boolean cancel; }
Remarks
Class fires this event to request a decryption password from the application when it comes across an encrypted archive or entry.
Please assign the password to DecryptionPassword property inside the event handler, or set Cancel to true to cancel the operation.