net.schmizz.sshj.userauth.method
Class PasswordResponseProvider

java.lang.Object
  extended by net.schmizz.sshj.userauth.method.PasswordResponseProvider
All Implemented Interfaces:
ChallengeResponseProvider

public class PasswordResponseProvider
extends Object
implements ChallengeResponseProvider


Field Summary
static Pattern DEFAULT_PROMPT_PATTERN
           
 
Constructor Summary
PasswordResponseProvider(PasswordFinder pwdf)
           
PasswordResponseProvider(PasswordFinder pwdf, Pattern promptPattern)
           
 
Method Summary
 char[] getResponse(String prompt, boolean echo)
           
 List<String> getSubmethods()
           
 void init(Resource resource, String name, String instruction)
           
 boolean shouldRetry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROMPT_PATTERN

public static final Pattern DEFAULT_PROMPT_PATTERN
Constructor Detail

PasswordResponseProvider

public PasswordResponseProvider(PasswordFinder pwdf)

PasswordResponseProvider

public PasswordResponseProvider(PasswordFinder pwdf,
                                Pattern promptPattern)
Method Detail

getSubmethods

public List<String> getSubmethods()
Specified by:
getSubmethods in interface ChallengeResponseProvider

init

public void init(Resource resource,
                 String name,
                 String instruction)
Specified by:
init in interface ChallengeResponseProvider

getResponse

public char[] getResponse(String prompt,
                          boolean echo)
Specified by:
getResponse in interface ChallengeResponseProvider

shouldRetry

public boolean shouldRetry()
Specified by:
shouldRetry in interface ChallengeResponseProvider


Copyright © 2009-2012. All Rights Reserved.