public class UserAuthKeyboardInteractive extends AbstractLoggingBean implements UserAuth
log| Constructor and Description |
|---|
UserAuthKeyboardInteractive() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected String |
getCurrentPasswordCandidate() |
protected String[] |
getUserResponses(String name,
String instruction,
String lang,
String[] prompt,
boolean[] echo) |
void |
init(ClientSession session,
String service,
Collection<?> identities) |
boolean |
process(Buffer buffer) |
protected boolean |
useCurrentPassword(String password,
String name,
String instruction,
String lang,
String[] prompt,
boolean[] echo) |
public void init(ClientSession session, String service, Collection<?> identities) throws Exception
protected String getCurrentPasswordCandidate()
protected String[] getUserResponses(String name, String instruction, String lang, String[] prompt, boolean[] echo)
name - The interaction name - may be emptyinstruction - The instruction - may be emptylang - The language tag - may be emptyprompt - The prompts - may be emptyecho - Whether to echo the response for the prompt or not - same
length as the promptsnull then the assumption
is that some internal error occurred and no response is sent. Note:
according to RFC4256
the number of responses should be exactly the same as the number
of prompts. However, since it is the server's responsibility to
enforce this we do not validate the response (other than logging it as
a warning...)protected boolean useCurrentPassword(String password, String name, String instruction, String lang, String[] prompt, boolean[] echo)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.