RSE
Release 1.0

org.eclipse.rse.connectorservice.ssh
Class KeyboardInteractiveDialog

java.lang.Object
  extended byorg.eclipse.jface.window.Window
      extended byorg.eclipse.jface.dialogs.Dialog
          extended byorg.eclipse.jface.dialogs.TrayDialog
              extended byorg.eclipse.rse.connectorservice.ssh.KeyboardInteractiveDialog
All Implemented Interfaces:
IShellProvider

public class KeyboardInteractiveDialog
extends TrayDialog

A dialog for keyboad-interactive authentication for the ssh2 connection.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
 
Field Summary
protected  String destination
           
protected  String domain
           
protected  boolean[] echo
           
protected  String instruction
           
protected  String lang
           
protected  String name
           
protected  String[] prompt
           
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
KeyboardInteractiveDialog(Shell parentShell, String connectionId, String destination, String name, String instruction, String[] prompt, boolean[] echo)
          Creates a nwe KeyboardInteractiveDialog.
 
Method Summary
protected  void cancelPressed()
          Notifies that the cancel button of this dialog has been pressed.
protected  void configureShell(Shell newShell)
           
 void create()
           
protected  Control createDialogArea(Composite parent)
           
protected  void createPasswordFields(Composite parent)
          Creates the widgets that represent the entry area.
 String[] getResult()
          Returns the entered values, or null if the user canceled.
protected  void okPressed()
          Notifies that the ok button of this dialog has been pressed.
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
close, closeTray, createButtonBar, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

protected String domain

destination

protected String destination

name

protected String name

instruction

protected String instruction

lang

protected String lang

prompt

protected String[] prompt

echo

protected boolean[] echo
Constructor Detail

KeyboardInteractiveDialog

public KeyboardInteractiveDialog(Shell parentShell,
                                 String connectionId,
                                 String destination,
                                 String name,
                                 String instruction,
                                 String[] prompt,
                                 boolean[] echo)
Creates a nwe KeyboardInteractiveDialog.

Parameters:
parentShell - the parent shell
connectionId - an id for the connection
destination - the location
name - the name
instruction - the instruction
prompt - the titles for textfields
echo - '*' should be used or not
Method Detail

configureShell

protected void configureShell(Shell newShell)
See Also:
Window.configureShell(org.eclipse.swt.widgets.Shell)

create

public void create()
See Also:
Window.create()

createDialogArea

protected Control createDialogArea(Composite parent)
See Also:
Dialog.createDialogArea(org.eclipse.swt.widgets.Composite)

createPasswordFields

protected void createPasswordFields(Composite parent)
Creates the widgets that represent the entry area.

Parameters:
parent - the parent of the widgets

getResult

public String[] getResult()
Returns the entered values, or null if the user canceled.

Returns:
the entered values

okPressed

protected void okPressed()
Notifies that the ok button of this dialog has been pressed.

The default implementation of this framework method sets this dialog's return code to Window.OK and closes the dialog. Subclasses may override.


cancelPressed

protected void cancelPressed()
Notifies that the cancel button of this dialog has been pressed.

The default implementation of this framework method sets this dialog's return code to Window.CANCEL and closes the dialog. Subclasses may override.


RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.