public class PDFPassword extends Object implements IPassword
Implementation of the IPassword interface that can hold either a single password or a list of passwords. In most cases, the host application should use this class to provide passwords to the library when opening encrypted documents.
Constructor and Description |
---|
PDFPassword(String password)
Create an instance of the class that will hold a single fixed password.
|
PDFPassword(String[] pwdList)
Create an instance of the class that will hold a list of possible passwords.
|
public PDFPassword(String password)
password
- The password to use when opening encrypted documents.public PDFPassword(String[] pwdList)
pwdList
- The list of possible passwords.public String[] getPasswords()
getPasswords
in interface IPassword