@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class WriteKeyPanel extends KeyPanel
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
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 |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
WriteKeyPanel()
Constructs a new write key panel.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
getFeedback, setFeedbackaddPanelListener, coalesceEvents, getAncestorWindow, getPanelListeners, processEvent, processPanelEvent, removePanelListenergetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprivate 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
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.public void setError(String error)
KeyPanelboolean updateParam(AesCipherParameters param)
updateParam in class KeyPanelprotected 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)
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.