| | |
| | | |
| | | private SelectAliasDialog aliasDlg; |
| | | |
| | | private boolean isCancelled = true; |
| | | private boolean isCanceled = true; |
| | | |
| | | private SecurityOptions securityOptions; |
| | | |
| | |
| | | * @return <CODE>true</CODE> if the user clicked on cancel and |
| | | * <CODE>false</CODE> otherwise. |
| | | */ |
| | | public boolean isCancelled() |
| | | public boolean isCanceled() |
| | | { |
| | | return isCancelled; |
| | | return isCanceled; |
| | | } |
| | | |
| | | /** |
| | |
| | | securityOptions = options; |
| | | updateContents(); |
| | | |
| | | isCancelled = true; |
| | | isCanceled = true; |
| | | |
| | | setVisible(true); |
| | | } |
| | |
| | | */ |
| | | private void cancelClicked() |
| | | { |
| | | isCancelled = true; |
| | | isCanceled = true; |
| | | dispose(); |
| | | } |
| | | |
| | |
| | | if (!certificateHasAlias) |
| | | { |
| | | selectedAlias = null; |
| | | isCancelled = false; |
| | | isCanceled = false; |
| | | dispose(); |
| | | } |
| | | else if (aliases.length > 1) |
| | |
| | | } |
| | | aliasDlg.display(aliases); |
| | | |
| | | if (!aliasDlg.isCancelled()) |
| | | if (!aliasDlg.isCanceled()) |
| | | { |
| | | selectedAlias = aliasDlg.getSelectedAlias(); |
| | | isCancelled = false; |
| | | isCanceled = false; |
| | | dispose(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | selectedAlias = aliases[0]; |
| | | isCancelled = false; |
| | | isCanceled = false; |
| | | dispose(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | isCancelled = false; |
| | | isCanceled = false; |
| | | dispose(); |
| | | } |
| | | } |