[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-tm-dev] Reg. Credentials Provider in RSE

Hello Thameem,
 
the only way of changing credential provider for a subsystem, is
that you subclass the SubSystemConfiguration. For FTP, do
 
* plugin.xml extension subSystemConfigurations "MyFTP"
* class MyFTPSubSystemConfiguration extends FTPFileSubSystemConfiguration
* Override the getConnectorService() method like this:
 
public IConnectorService getConnectorService(IHost host) {
    final IConnectorService originalService = super.getConnectorService(host);
    return new AbstractDelegatingConnectorService {
      public IConnectorService getRealConnectorService() {
         return originalService;
      }
      /// override credential related methods here as needed
    }
}
 
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
 
 


From: dsdp-tm-dev-bounces@xxxxxxxxxxx [mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx] On Behalf Of Thameem Ansari N
Sent: Monday, May 26, 2008 11:33 AM
To: dsdp-tm-dev@xxxxxxxxxxx
Subject: [dsdp-tm-dev] Reg. Credentials Provider in RSE

Hi,

 

While creating a new connection in RSE view, we can select a particular system to be connected.

 

Let’s say, if one selects Remote System type as FTP, one has to provide the credentials (user id and password) for the machine to be connected. After giving proper user id and password, it connects to the system to get the files and folder structure of the remote system.

 

Here, FTP System type uses FTPConnectorService which uses StandardCredentailsProvider which gets the user id and password of the system through a dialog box and uses the same to connect to the remote system.

 

We would like to know how to plug-in our own credentials provider for an existing remote system type.

 

For example,

 

While connecting through FTP, the user should not be asked to enter the user id and password; instead it should be read from a file or database.

 

Please let us know how this can be achieved

 

Thanks & Regards,

Thameem Ansari N

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***