RE: [JSch-users] Where is JSchUserInfo class?
Status: Alpha
Brought to you by:
ymnk
From: Jiang, P. <Pei...@nr...> - 2005-04-04 17:01:56
|
I'm just emulating the interface provided in the original code: ------------------------------------------------------- import com.jcraft.jsch.UserInfo; /** * The responsibities of CopsJSchUserInfo: get user password. */ public class CopsJSchUserInfo implements UserInfo { private String password = ""; protected CopsJSchUserInfo(String password) { setPassword(password); } /** * no implementation */ public String getPassphrase() { return null;//default } /** * only one needed */ public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } /** * no implementation */ public boolean promptPassword(String message) { return true;//password OK } /** * no implementation */ public boolean promptPassphrase(String message) { return true;//default } /** * no implementation */ public boolean promptYesNo(String message) { return true;//select YES } /** * no implementation */ public void showMessage(String message) { //do nothing } } -----Original Message----- From: jsc...@li... [mailto:jsc...@li...]On Behalf Of ym...@jc... Sent: April 4, 2005 12:51 PM To: che...@ya... Cc: jsc...@li... Subject: Re: [JSch-users] Where is JSchUserInfo class? Hi, +-From: Nagarjun Chevula <che...@ya...> -- |_Date: Fri, 1 Apr 2005 16:50:21 -0800 (PST) ____ | |In the message posted by Mr. Jiang, Peiyun (sftp from servlet), |where did the class JSchUserInfo came from? Does it exists in one |of jsch* jar files? Or is it created by Mr. Jiang himslef. It is not from jsch and it must be his own implementation of com.jcraft.jsch.UserInfo interface. Thanks, -- ymnk ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JSch-users mailing list JSc...@li... https://lists.sourceforge.net/lists/listinfo/jsch-users |