|
TrueZIP 6.8.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.swing.EnhancedPanel
de.schlichtherle.key.passwd.swing.CreateKeyPanel
public class CreateKeyPanel
This panel prompts the user for a key to create or overwrite a protected resource. It currently supports password and key file authentication, but is extensible for use with certificate based authentication, too.
| 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 |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, 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 | |
|---|---|
CreateKeyPanel()
Creates new form CreateKeyPanel |
|
| Method Summary | |
|---|---|
protected void |
checkKeyFileCreateKey(byte[] createKey)
Check the data entropy in the new key. |
protected void |
checkPasswdCreateKey(char[] createKey)
|
Object |
getCreateKey()
Getter for property createKey. |
String |
getError()
Getter for property error. |
JComponent |
getExtraDataUI()
Getter for property extraDataUI. |
Feedback |
getFeedback()
Returns the feedback to run when this panel is shown in its ancestor window. |
String |
getResourceID()
Getter for property resourceID. |
void |
resetCreateKey()
Deprecated. Create a new CreateKeyPanel instead. |
void |
resetPasswd()
Deprecated. Create a new CreateKeyPanel instead. |
void |
setError(String error)
Setter for property error. |
void |
setExtraDataUI(JComponent extraDataUI)
Setter for property extraDataUI. |
void |
setFeedback(Feedback feedback)
Sets the feedback to run when this panel is shown in its ancestor window. |
void |
setResourceID(String resourceID)
Setter for property resourceID. |
| Methods inherited from class de.schlichtherle.swing.EnhancedPanel |
|---|
addPanelListener, coalesceEvents, fireAncestorWindowHidden, fireAncestorWindowShown, getAncestorWindow, getListeners, 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 |
| Constructor Detail |
|---|
public CreateKeyPanel()
| Method Detail |
|---|
public String getResourceID()
resourceID.
resourceID.public void setResourceID(String resourceID)
resourceID.
resourceID - New value of property resourceID.public Object getCreateKey()
createKey.
createKey.
This is null if the user hasn't entered two equal
passwords or if the password is weak.
May also be null if a key file is selected and
accessing it results in an exception.public void resetCreateKey()
CreateKeyPanel instead.
public void resetPasswd()
CreateKeyPanel instead.
protected void checkKeyFileCreateKey(byte[] createKey)
throws WeakKeyException
WeakKeyException
protected void checkPasswdCreateKey(char[] createKey)
throws WeakKeyException
WeakKeyExceptionpublic String getError()
error.
public void setError(String error)
error - New value of property error.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.public Feedback getFeedback()
public void setFeedback(Feedback feedback)
|
TrueZIP 6.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||