Android Open Source - wolPi User Info Impl






From Project

Back to project page wolPi.

License

The source code is released under:

Apache License

If you think the Android project wolPi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.matthesrieke.wolpi;
//from  w ww . ja v a  2 s .  c om
import com.jcraft.jsch.UserInfo;

/**
 * Basic {@link UserInfo} implementation.
 * 
 * @author matthes rieke
 *
 */
public class UserInfoImpl implements UserInfo {

  private String password;

  public UserInfoImpl(String password) {
    this.password = password;
  }

  @Override
  public String getPassphrase() {
    return null;
  }

  @Override
  public String getPassword() {
    return this.password;
  }

  @Override
  public boolean promptPassphrase(String arg0) {
    return false;
  }

  @Override
  public boolean promptPassword(String arg0) {
    //TODO Ask UI?
    return true;
  }

  @Override
  public boolean promptYesNo(String arg0) {
    // TODO Ask UI for fingerprint acceptance
    return true;
  }

  @Override
  public void showMessage(String arg0) {
    
  }

}




Java Source Code List

de.matthesrieke.wolpi.CommandResult.java
de.matthesrieke.wolpi.Interactor.java
de.matthesrieke.wolpi.SysoutInteractor.java
de.matthesrieke.wolpi.UserInfoImpl.java
de.matthesrieke.wolpi.WolPiException.java
de.matthesrieke.wolpi.WolPi.java
de.matthesrieke.wolpi.dao.SQLiteSettingsProvider.java
de.matthesrieke.wolpi.settings.HostConfiguration.java
de.matthesrieke.wolpi.settings.SSHConnection.java
de.matthesrieke.wolpi.settings.SettingsProvider.java
de.matthesrieke.wolpi.settings.WolSettings.java
de.matthesrieke.wolpi.ui.ConfirmationDialog.java
de.matthesrieke.wolpi.ui.HostListActivity.java
de.matthesrieke.wolpi.ui.HostManagementActivity.java
de.matthesrieke.wolpi.ui.MainActivity.java
de.matthesrieke.wolpi.ui.TextViewInteractor.java
de.matthesrieke.wolpi.util.AndroidServiceLoader.java