Class AuthKeyboardInteractive
java.lang.Object
net.schmizz.sshj.userauth.method.AbstractAuthMethod
net.schmizz.sshj.userauth.method.AuthKeyboardInteractive
- All Implemented Interfaces:
SSHPacketHandler, AuthMethod
Implements the
keyboard-interactive authentication method.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class AbstractAuthMethod
log, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringbuildReq()Builds aSSHPacketcontaining the fields common to all authentication method.voidDelegate handling of some SSH packet to this object.private voidrespond(AuthKeyboardInteractive.CharArrWrap[] userReplies) booleanMethods inherited from class AbstractAuthMethod
getName, init, makeAccountResource, request, setLoggerFactory
-
Field Details
-
provider
-
-
Constructor Details
-
AuthKeyboardInteractive
-
-
Method Details
-
buildReq
Description copied from class:AbstractAuthMethodBuilds aSSHPacketcontaining the fields common to all authentication method. Method-specific fields can further be put into this buffer.- Overrides:
buildReqin classAbstractAuthMethod- Throws:
UserAuthException
-
buildCommaSeparatedSubmethodList
-
handle
Description copied from interface:SSHPacketHandlerDelegate handling of some SSH packet to this object.- Specified by:
handlein interfaceSSHPacketHandler- Overrides:
handlein classAbstractAuthMethod- Parameters:
cmd- the SSHmessage identifierbuf-SSHPacketcontaining rest of the request- Throws:
UserAuthExceptionTransportException
-
respond
- Throws:
TransportException
-
shouldRetry
public boolean shouldRetry()- Specified by:
shouldRetryin interfaceAuthMethod- Overrides:
shouldRetryin classAbstractAuthMethod- Returns:
- whether authentication should be reattempted if it failed.
-