public class PasswordResponseProvider extends Object implements ChallengeResponseProvider
Modifier and Type | Field and Description |
---|---|
static Pattern |
DEFAULT_PROMPT_PATTERN |
Constructor and Description |
---|
PasswordResponseProvider(PasswordFinder pwdf) |
PasswordResponseProvider(PasswordFinder pwdf,
Pattern promptPattern) |
Modifier and Type | Method and Description |
---|---|
char[] |
getResponse(String prompt,
boolean echo) |
List<String> |
getSubmethods() |
void |
init(Resource resource,
String name,
String instruction) |
boolean |
shouldRetry() |
public static final Pattern DEFAULT_PROMPT_PATTERN
public PasswordResponseProvider(PasswordFinder pwdf)
public PasswordResponseProvider(PasswordFinder pwdf, Pattern promptPattern)
public List<String> getSubmethods()
getSubmethods
in interface ChallengeResponseProvider
public void init(Resource resource, String name, String instruction)
init
in interface ChallengeResponseProvider
public char[] getResponse(String prompt, boolean echo)
getResponse
in interface ChallengeResponseProvider
public boolean shouldRetry()
shouldRetry
in interface ChallengeResponseProvider
Copyright © 2009–2015. All rights reserved.