Package com.sshtools.common.auth
Class PasswordKeyboardInteractiveProvider
java.lang.Object
com.sshtools.common.auth.PasswordKeyboardInteractiveProvider
- All Implemented Interfaces:
KeyboardInteractiveProvider
public class PasswordKeyboardInteractiveProvider
extends Object
implements KeyboardInteractiveProvider
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordKeyboardInteractiveProvider(PasswordAuthenticationProvider[] providers, SshConnection con) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetChangePasswordFailed(String username) protected StringgetChangePasswordInstructions(String username) protected StringgetChangePasswordMismatch(String username) protected Stringprotected StringgetInstructions(String username) getName()protected Stringprotected Stringbooleaninit(SshConnection con) booleansetResponse(String[] answers, Collection<KBIPrompt> additionalPrompts)
-
Constructor Details
-
PasswordKeyboardInteractiveProvider
public PasswordKeyboardInteractiveProvider() -
PasswordKeyboardInteractiveProvider
public PasswordKeyboardInteractiveProvider(PasswordAuthenticationProvider[] providers, SshConnection con)
-
-
Method Details
-
hasAuthenticated
public boolean hasAuthenticated()- Specified by:
hasAuthenticatedin interfaceKeyboardInteractiveProvider
-
setResponse
- Specified by:
setResponsein interfaceKeyboardInteractiveProvider
-
init
- Specified by:
initin interfaceKeyboardInteractiveProvider
-
getInstruction
- Specified by:
getInstructionin interfaceKeyboardInteractiveProvider
-
getName
- Specified by:
getNamein interfaceKeyboardInteractiveProvider
-
getPasswordPrompt
-
getConfirmPasswordPrompt
-
getNewPasswordPrompt
-
getInstructions
-
getChangePasswordInstructions
-
getChangePasswordFailed
-
getChangePasswordMismatch
-