net.schmizz.sshj.userauth.method
Class PasswordResponseProvider
java.lang.Object
net.schmizz.sshj.userauth.method.PasswordResponseProvider
- All Implemented Interfaces:
- ChallengeResponseProvider
public class PasswordResponseProvider
- extends Object
- implements ChallengeResponseProvider
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PROMPT_PATTERN
public static final Pattern DEFAULT_PROMPT_PATTERN
PasswordResponseProvider
public PasswordResponseProvider(PasswordFinder pwdf)
PasswordResponseProvider
public PasswordResponseProvider(PasswordFinder pwdf,
Pattern promptPattern)
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.