DecryptionPasswordNeeded Event
Requests a decryption password, when needed.
Syntax
public class DefaultArchivereaderEventListener implements ArchivereaderEventListener { ... public void decryptionPasswordNeeded(ArchivereaderDecryptionPasswordNeededEvent e) {} ... } public class ArchivereaderDecryptionPasswordNeededEvent { public String passwordTarget; public boolean cancel; }
Remarks
Component fires this event when it needs a password to decrypt the archive. Subscribe to this event if you expect to process encrypted archives.
Inside the event handler, please assign the correct password to DecryptionPassword property, or set Cancel parameter to true to terminate the processing.