public class PGPEncryptWizard extends WizardDialog
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowMultipleRecipients
May the user specify multiple recipients for encryption (default:
true )? |
protected boolean |
allowMultipleTargets
May the user specify multiple target files (default:
true )? |
protected boolean |
allowSigning
Shall signing be offered (optional, default:
true )? |
protected PGPFormatPanel |
formatPanel
Custom component for the
FileSystemPage |
protected FileSystemPage |
pageFileSystem
The file system page to specify the target file(s).
|
protected CheckBoxPage |
pageFormats
The page to specify the target file formats.
|
protected PGPRecipientPage |
pageRecipients
The page to specify the key(s) used for encryption.
|
protected PGPSignerPage |
pageSigner
The page to specify the key used for signing and the passphrase.
|
protected com.didisoft.pgp.KeyPairInformation[] |
recipientKeys
The key(s) used for encryption, chooser is displayed if not specified.
|
protected com.didisoft.pgp.KeyPairInformation |
signerKey
The signing key, chooser is displayed if not specified, passphrase requested if secret key has not been unlocked.
|
protected java.io.File[] |
targets
The file(s) to be encryped, file system chooser is displayed if not specified.
|
BUTTON_BACK, BUTTON_CANCEL, BUTTON_FINISH, BUTTON_NEXT, buttonBack_I18N, buttonCancel_I18N, buttonFinish_I18N, buttonHelp, buttonNext_I18N, clickedButton, exitButton, listeners, mode, MODE_DYNAMIC, MODE_STATIC, resizeListener, sequence, stack, startingPage, statusBar
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
PGPEncryptWizard()
Constructor method for i18n purposes only.
|
PGPEncryptWizard(java.awt.Frame owner)
Constructor for the GUI component.
|
Modifier and Type | Method and Description |
---|---|
void |
configureUnit(java.lang.String id,
Configuration config)
Restores values from persistent data stores.
|
protected void |
finalize()
Clean-up method to help the gc.
|
Configuration |
getConfiguration()
Assembles the page configurations so that the generation can be started based on settings.
|
int |
getFileFormat()
Provides the format to use for encrypted files (ASCII/binary).
|
FileSystemPage |
getPageFileSystem()
Provides the file system page to specify a target file.
|
CheckBoxPage |
getPageFormats()
Provides the page to specify the target file formats.
|
PGPRecipientPage |
getPageRecipients()
Provides the page to specify the recipient key(s).
|
PGPSignerPage |
getPageSigner()
Provides the page to specify the signer key.
|
void |
reset()
Resets the wizard to default values.
|
void |
setCryptoManager(CryptoManager manager)
Sets the manager for keys and passphrases.
|
void |
setMultipleRecipients(boolean value)
May the user specify multiple recipients for encryption (default:
true )? |
void |
setMultipleTargets(boolean value)
May the user specify multiple target files (default:
true )? |
void |
setRecipientKeys(com.didisoft.pgp.KeyPairInformation[] recipients)
The key(s) used for encryption, chooser is displayed if not specified.
|
void |
setSignerKey(com.didisoft.pgp.KeyPairInformation signer)
The signing key, chooser is displayed if not specified, passphrase requested if secret key has not been unlocked.
|
void |
setSigning(boolean value)
Shall signing be offered (optional, default:
true )? |
void |
setTargets(java.io.File[] targets)
The file(s) to be encryped, file system chooser is displayed if not specified.
|
void |
setupPages()
Configures the wizard's pages accoding to the current settings.
|
void |
storeUnit(java.lang.String id,
Configuration config)
Stores the current configuration values persistently.
|
void |
unitRegistered(ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was registered with a model.
|
void |
unitUnregistered(ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was unregistered with a model.
|
actionPerformed, addWizardPageListener, allowConfirmOnKeyStroke, allowEscapeOnKeyStroke, clickButton, execute, getButtonBack, getButtonCancel, getButtonFinish, getButtonNext, getClickedButton, getCurrentPage, getExitButton, getPreviousPage, getPreviousPages, getStatusBar, isButtonEnabled, removeWizardPageListener, setButtonEnabled, setDividerLocation, setEnabledBack, setEnabledCancel, setEnabledFinish, setEnabledNext, setHelpID, setOverviewText, setStartingPage, setVisible, showPage, updateOverview, updatePageIcon
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected FileSystemPage pageFileSystem
protected CheckBoxPage pageFormats
protected PGPRecipientPage pageRecipients
protected PGPSignerPage pageSigner
protected boolean allowMultipleTargets
true
)?protected java.io.File[] targets
protected boolean allowMultipleRecipients
true
)?protected com.didisoft.pgp.KeyPairInformation[] recipientKeys
protected boolean allowSigning
true
)?protected com.didisoft.pgp.KeyPairInformation signerKey
protected PGPFormatPanel formatPanel
FileSystemPage
public PGPEncryptWizard() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic PGPEncryptWizard(java.awt.Frame owner)
owner
- The owner frameprotected void finalize() throws java.lang.Throwable
finalize
in class WizardDialog
java.lang.Throwable
- Error indicationpublic Configuration getConfiguration()
null
if wizard has not been finished or error casepublic void configureUnit(java.lang.String id, Configuration config)
configureUnit
in interface ConfigurableUnit
configureUnit
in class WizardDialog
id
- The unique identifier for the instanceconfig
- The configurationpublic void storeUnit(java.lang.String id, Configuration config)
storeUnit
in interface ConfigurableUnit
storeUnit
in class WizardDialog
id
- The unique identifier for the instanceconfig
- The configurationpublic void unitRegistered(ApplicationModel model, java.lang.String id)
unitRegistered
in interface ConfigurableUnit
unitRegistered
in class WizardDialog
model
- The application modelid
- The unique identifier for the instancepublic void unitUnregistered(ApplicationModel model, java.lang.String id)
unitUnregistered
in interface ConfigurableUnit
unitUnregistered
in class WizardDialog
model
- The application modelid
- The unique identifier for the instancepublic FileSystemPage getPageFileSystem()
null
public CheckBoxPage getPageFormats()
null
public PGPRecipientPage getPageRecipients()
null
public PGPSignerPage getPageSigner()
null
public void setMultipleTargets(boolean value)
true
)?
value
- The propertypublic void setTargets(java.io.File[] targets)
targets
- The propertyjava.lang.NullPointerException
- If a parameter is null
java.lang.IllegalArgumentException
- If a parameter is invalidpublic void setMultipleRecipients(boolean value)
true
)?
value
- The propertypublic void setRecipientKeys(com.didisoft.pgp.KeyPairInformation[] recipients)
recipients
- The propertypublic void setSigning(boolean value)
true
)?
value
- The propertypublic void setSignerKey(com.didisoft.pgp.KeyPairInformation signer)
signer
- The propertypublic void reset()
setupPages()
after the wizard has been configured.
public void setupPages()
public int getFileFormat()
public void setCryptoManager(CryptoManager manager)
manager
- The managerCopyright © 2005-2023 Leisenfels GmbH. All rights reserved.