public interface IPassword
External interface used by the PDF library to get possible passwords to open a document. When a PDF document is password protected, the library will call the getPasswords method in the interface to get a list of passwords from the host application. The library then tries to open the document using each of the passwords in the list until one of them (or none) work.
For simple fixed passwords, or when the passwords are from a short list, the
host application should use the implementation provided by the library,
PDFPassword
.
For more complex implementations, the host application can create its own class that implements this interface.
Modifier and Type | Method and Description |
---|---|
String[] |
getPasswords()
Method called to get passwords for encrypted PDF documents.
|
String[] getPasswords()