org.icepdf.ri.common
Class MyGUISecurityCallback

java.lang.Object
  extended by org.icepdf.ri.common.MyGUISecurityCallback
All Implemented Interfaces:
org.icepdf.core.SecurityCallback

public class MyGUISecurityCallback
extends java.lang.Object
implements org.icepdf.core.SecurityCallback

This class is reference code for displaying a password dialog box for encrypted PDF documents.

Since:
1.1

Constructor Summary
MyGUISecurityCallback(javax.swing.JFrame frame, java.util.ResourceBundle messageBundle)
          Create a new instance of a SecurityCallback.
 
Method Summary
 java.lang.String requestPassword(org.icepdf.core.pobjects.Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyGUISecurityCallback

public MyGUISecurityCallback(javax.swing.JFrame frame,
                             java.util.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.
Method Detail

requestPassword

public java.lang.String requestPassword(org.icepdf.core.pobjects.Document document)
Specified by:
requestPassword in interface org.icepdf.core.SecurityCallback