|
TrueZIP Driver ZIP.RAES (TZP) 7.1 | ||||||||
| 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.KeyPanel
de.schlichtherle.truezip.crypto.raes.param.swing.WriteKeyPanel
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class WriteKeyPanel
This panel prompts the user for a key to create or overwrite a protected resource. It currently supports password and key file authentication.
| 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 static String |
CLASS_NAME
|
private Color |
defaultForeground
|
private JLabel |
error
|
private JComponent |
extraDataUI
|
private static int |
MIN_PASSWD_LEN
The minimum acceptable length of a password. |
private JPasswordField |
newPasswd1Field
|
private JLabel |
newPasswd1Label
|
private JPasswordField |
newPasswd2Field
|
private JLabel |
newPasswd2Label
|
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 | |
|---|---|
WriteKeyPanel()
Constructs a new write key panel. |
|
| Method Summary | |
|---|---|
protected void |
checkKeyFileKey(byte[] key)
Checks the entropy of the given key. |
protected void |
checkPasswdKey(char[] key)
Checks the entropy of the given key. |
String |
getError()
Getter for property error. |
JComponent |
getExtraDataUI()
Getter for property extraDataUI. |
URI |
getResource()
Getter for property resource. |
private void |
initComponents()
This method is called from within the constructor to initialize the form. |
private static String |
localizedMessage(ResourceBundle resources,
String key,
Object param)
|
private void |
passwdPanelAncestorWindowShown(PanelEvent evt)
|
void |
setError(String error)
Setter for property error. |
void |
setExtraDataUI(JComponent extraDataUI)
Setter for property extraDataUI. |
void |
setResource(URI resource)
Setter for property resource. |
(package private) boolean |
updateParam(AesCipherParameters param)
|
| Methods inherited from class de.schlichtherle.truezip.crypto.raes.param.swing.KeyPanel |
|---|
getFeedback, setFeedback |
| 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 long serialVersionUID
private static final String CLASS_NAME
private static final ResourceBundle resources
private static final int MIN_PASSWD_LEN
private final Color defaultForeground
private JComponent extraDataUI
private AuthenticationPanel authenticationPanel
private JLabel error
private JPasswordField newPasswd1Field
private JLabel newPasswd1Label
private JPasswordField newPasswd2Field
private JLabel newPasswd2Label
private EnhancedPanel passwdPanel
private JTextPane resource
| Constructor Detail |
|---|
public WriteKeyPanel()
| Method Detail |
|---|
public URI getResource()
KeyPanelresource.
getResource in class KeyPanelresource.public void setResource(URI resource)
KeyPanelresource.
setResource in class KeyPanelresource - New value of property resource.public String getError()
KeyPanelerror.
getError in class KeyPanelpublic void setError(String error)
KeyPanel
setError in class KeyPanelerror - New value of property error.boolean updateParam(AesCipherParameters param)
updateParam in class KeyPanel
protected void checkKeyFileKey(byte[] key)
throws WeakKeyException
key - the key to check.
WeakKeyException - if the entropy of the given key is too weak.
protected void checkPasswdKey(char[] key)
throws WeakKeyException
key - the key to check.
WeakKeyException - if the entropy of the given key is too weak.
private static String localizedMessage(ResourceBundle resources,
String key,
@CheckForNull
Object param)
public JComponent getExtraDataUI()
extraDataUI.
extraDataUI.public void setExtraDataUI(JComponent extraDataUI)
extraDataUI.
This component is placed below the two password fields and above the
error label.
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.private void initComponents()
private void passwdPanelAncestorWindowShown(PanelEvent evt)
|
TrueZIP Driver ZIP.RAES (TZP) 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||