com.qoppa.pdf
Interface IPassword

All Known Implementing Classes:
PDFEditorBean, PDFNotesBean, PDFPassword, PDFViewerBean

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.

Author:
Qoppa Software

Method Summary
 String[] getPasswords()
          Method called to get passwords for encrypted PDF documents.
 

Method Detail

getPasswords

String[] getPasswords()
Method called to get passwords for encrypted PDF documents.

Returns:
A list of passwords to try to open the document.