|
TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
de.schlichtherle.truezip.swing.EnhancedPanel
de.schlichtherle.truezip.crypto.raes.param.swing.OpenKeyPanel
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) final class OpenKeyPanel
This panel prompts the user for a key to open an existing protected resource. It currently supports password and key file authentication, but is extensible for use with certificate based authentication, too.
Note that the contents of the password and file path fields are stored in a static field from which they are restored when a new panel is created. This is very convenient for the user if she inadvertently entered a wrong key or shares the same key for multiple protected resources.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private AuthenticationPanel |
authenticationPanel
|
private JCheckBox |
changeKey
|
private static String |
CLASS_NAME
|
private Color |
defaultForeground
|
private JLabel |
error
|
private JComponent |
extraDataUI
|
private Feedback |
feedback
|
private JPasswordField |
passwd
|
private JLabel |
passwdLabel
|
private EnhancedPanel |
passwdPanel
|
private JTextPane |
resource
|
private static ResourceBundle |
resources
|
private static long |
serialVersionUID
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
OpenKeyPanel()
Creates new form OpenKeyPanel |
|
| Method Summary | |
|---|---|
private void |
formAncestorWindowShown(PanelEvent evt)
|
private Font |
getBoldFont()
|
(package private) String |
getError()
Getter for property error. |
(package private) JComponent |
getExtraDataUI()
Getter for property extraDataUI. |
(package private) Feedback |
getFeedback()
Returns the feedback to run when this panel is shown in its ancestor window. |
(package private) URI |
getResource()
Getter for property resourceID. |
private void |
initComponents()
This method is called from within the constructor to initialize the form. |
(package private) boolean |
isChangeKeySelected()
Getter for property changeKeySelected. |
private void |
passwdPanelAncestorWindowShown(PanelEvent evt)
|
(package private) void |
setChangeKeySelected(boolean changeKeySelected)
Setter for property changeKeySelected. |
(package private) void |
setError(String error)
Setter for property error. |
(package private) void |
setExtraDataUI(JComponent extraDataUI)
Setter for property extraDataUI. |
(package private) void |
setFeedback(Feedback feedback)
Sets the feedback to run when this panel is shown in its ancestor window. |
(package private) void |
setResource(URI resource)
Setter for property resourceID. |
(package private) boolean |
updateOpenKey(AesCipherParameters param)
Getter for property openKey. |
| Methods inherited from class de.schlichtherle.truezip.swing.EnhancedPanel |
|---|
addPanelListener, coalesceEvents, getAncestorWindow, getPanelListeners, processEvent, processPanelEvent, removePanelListener |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final String CLASS_NAME
private static final ResourceBundle resources
private static final long serialVersionUID
private final Color defaultForeground
private JComponent extraDataUI
private Feedback feedback
private AuthenticationPanel authenticationPanel
private final JCheckBox changeKey
private JLabel error
private JPasswordField passwd
private JLabel passwdLabel
private EnhancedPanel passwdPanel
private JTextPane resource
| Constructor Detail |
|---|
public OpenKeyPanel()
| Method Detail |
|---|
private Font getBoldFont()
URI getResource()
resourceID.
resourceID.void setResource(URI resource)
resourceID.
resource - New value of property resourceID.@CheckForNull String getError()
error.
void setError(@CheckForNull
String error)
error - New value of property error.boolean updateOpenKey(AesCipherParameters param)
openKey.
If a key file is selected and an error occurs when accessing it,
a descriptive message is set for the error property.
openKey.
May be null if a key file is selected and
accessing it results in an exception.boolean isChangeKeySelected()
void setChangeKeySelected(boolean changeKeySelected)
changeKeySelected - New value of property changeKeySelected.JComponent getExtraDataUI()
extraDataUI.
extraDataUI.void setExtraDataUI(JComponent extraDataUI)
extraDataUI.
This component is placed below the password field and above the
"change password / key file" check box.
It may be used to prompt the user for additional data which may form
part of the key or is separately stored in the key provider.
The panel is automatically revalidated.
extraDataUI - New value of property extraDataUI.Feedback getFeedback()
void setFeedback(Feedback feedback)
private void initComponents()
private void formAncestorWindowShown(PanelEvent evt)
private void passwdPanelAncestorWindowShown(PanelEvent evt)
|
TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||