RSE
Release 1.0

org.eclipse.rse.ui.dialogs
Interface ISignonValidator


public interface ISignonValidator

Interace for providing a signon validator to the password prompt dialog.


Method Summary
 SystemMessage isValid(ISystemPasswordPromptDialog dialog, String userid, String password)
          Used by ISystemPasswordPromptDialog to verify if the password entered by the user is correct.
 boolean isValid(Shell shell, SystemSignonInformation signonInfo)
          Verify if persisted userid and password are still valid
 

Method Detail

isValid

public SystemMessage isValid(ISystemPasswordPromptDialog dialog,
                             String userid,
                             String password)
Used by ISystemPasswordPromptDialog to verify if the password entered by the user is correct.

Returns:
null if the password is valid, otherwise a SystemMessage is returned that can be displayed to the end user.

isValid

public boolean isValid(Shell shell,
                       SystemSignonInformation signonInfo)
Verify if persisted userid and password are still valid

Parameters:
shell - Shell: if null the validator will run headless, if not null then the validator may use the shell to prompt the user (for example, if the password has expired.)
Returns:
true if signonInfo contains a valid signon, false otherwise.

RSE
Release 1.0

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