public class PasswordResponseProvider extends java.lang.Object implements ChallengeResponseProvider
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
DEFAULT_PROMPT_PATTERN |
Constructor and Description |
---|
PasswordResponseProvider(PasswordFinder pwdf) |
PasswordResponseProvider(PasswordFinder pwdf,
java.util.regex.Pattern promptPattern) |
PasswordResponseProvider(PasswordFinder pwdf,
java.util.regex.Pattern promptPattern,
LoggerFactory loggerFactory) |
Modifier and Type | Method and Description |
---|---|
char[] |
getResponse(java.lang.String prompt,
boolean echo) |
java.util.List<java.lang.String> |
getSubmethods() |
void |
init(Resource resource,
java.lang.String name,
java.lang.String instruction) |
boolean |
shouldRetry() |
public static final java.util.regex.Pattern DEFAULT_PROMPT_PATTERN
public PasswordResponseProvider(PasswordFinder pwdf)
public PasswordResponseProvider(PasswordFinder pwdf, java.util.regex.Pattern promptPattern)
public PasswordResponseProvider(PasswordFinder pwdf, java.util.regex.Pattern promptPattern, LoggerFactory loggerFactory)
public java.util.List<java.lang.String> getSubmethods()
getSubmethods
in interface ChallengeResponseProvider
public void init(Resource resource, java.lang.String name, java.lang.String instruction)
init
in interface ChallengeResponseProvider
public char[] getResponse(java.lang.String prompt, boolean echo)
getResponse
in interface ChallengeResponseProvider
public boolean shouldRetry()
shouldRetry
in interface ChallengeResponseProvider