RSE
Release 1.0

org.eclipse.rse.ui.dialogs
Interface ISystemPasswordPromptDialog

All Known Implementing Classes:
SystemPasswordPromptDialog

public interface ISystemPasswordPromptDialog

Suggested interface for a dialog used to prompt user for a password.


Method Summary
 boolean getForceToUpperCase()
          Call this to query the force-to-uppercase setting
 boolean getIsSavePassword()
          Return true if the user elected to save the password
 boolean getIsUserIdChanged()
          Return true if the user changed the user id
 boolean getIsUserIdChangePermanent()
          Return true if the user elected to make the changed user Id a permanent change.
 String getPassword()
          Return the password entered by user
 Shell getShell()
          Return the shell for this dialog
 String getUserId()
          Return the userId entered by user
 int open()
          Open the dialog
 void setBlockOnOpen(boolean block)
          Set modal vs modeless
 void setForceToUpperCase(boolean force)
          Call this to force the userId and password to uppercase
 void setPassword(String password)
          Sets the password
 void setPasswordValidator(ISystemValidator v)
          Call this to specify a validator for the password.
 void setSavePassword(boolean save)
          Preselect the save password checkbox.
 void setSignonValidator(ISignonValidator v)
          Call this to specify a validator for the signon.
 void setSystemInput(IConnectorService systemObject)
          Set the input System object in which the user is attempting to do a connect action.
 void setUserIdValidator(ISystemValidator v)
          Call this to specify a validator for the userId.
 boolean wasCancelled()
          Allow caller to determine if window was cancelled or not.
 

Method Detail

setBlockOnOpen

public void setBlockOnOpen(boolean block)
Set modal vs modeless


open

public int open()
Open the dialog


setSystemInput

public void setSystemInput(IConnectorService systemObject)
Set the input System object in which the user is attempting to do a connect action. This is used to query the system type, host name and userId to display to the user for contextual information.

This must be called right after instantiating this dialog.


wasCancelled

public boolean wasCancelled()
Allow caller to determine if window was cancelled or not.


setUserIdValidator

public void setUserIdValidator(ISystemValidator v)
Call this to specify a validator for the userId. It will be called per keystroke.


setPasswordValidator

public void setPasswordValidator(ISystemValidator v)
Call this to specify a validator for the password. It will be called per keystroke.


setSignonValidator

public void setSignonValidator(ISignonValidator v)
Call this to specify a validator for the signon. It will be called when the OK button is pressed.


setForceToUpperCase

public void setForceToUpperCase(boolean force)
Call this to force the userId and password to uppercase


getForceToUpperCase

public boolean getForceToUpperCase()
Call this to query the force-to-uppercase setting


getUserId

public String getUserId()
Return the userId entered by user


getPassword

public String getPassword()
Return the password entered by user


setPassword

public void setPassword(String password)
Sets the password


setSavePassword

public void setSavePassword(boolean save)
Preselect the save password checkbox. Default value is to not select the save password checkbox.


getIsUserIdChanged

public boolean getIsUserIdChanged()
Return true if the user changed the user id


getIsUserIdChangePermanent

public boolean getIsUserIdChangePermanent()
Return true if the user elected to make the changed user Id a permanent change.


getIsSavePassword

public boolean getIsSavePassword()
Return true if the user elected to save the password


getShell

public Shell getShell()
Return the shell for this dialog


RSE
Release 1.0

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