- java.lang.Object
-
- org.icepdf.ri.common.MyGUISecurityCallback
-
- All Implemented Interfaces:
SecurityCallback
public class MyGUISecurityCallback extends Object implements SecurityCallback
This class is reference code for displaying a password dialog box for encrypted PDF documents.- Since:
- 1.1
-
-
Constructor Summary
Constructors Constructor Description MyGUISecurityCallback(Frame frame, ResourceBundle messageBundle)Create a new instance of a SecurityCallback.
-
-
-
Constructor Detail
-
MyGUISecurityCallback
public MyGUISecurityCallback(Frame frame, ResourceBundle messageBundle)
Create a new instance of a SecurityCallback. This class displays a dialog when the requestPassword method is called to retrieve the document's password from the user.- Parameters:
frame- frame that the dialog will be centered on.messageBundle- message bundle for i18n.
-
-
Method Detail
-
requestPassword
public String requestPassword(Document document)
- Specified by:
requestPasswordin interfaceSecurityCallback
-
-