public class

AuthPassword

extends AbstractAuthMethod
java.lang.Object
   ↳ net.schmizz.sshj.userauth.method.AbstractAuthMethod
     ↳ net.schmizz.sshj.userauth.method.AuthPassword

Class Overview

Implements the password authentication method. Password-change request handling is not currently supported.

Summary

Fields
private final PasswordFinder pwdf
[Expand]
Inherited Fields
From class net.schmizz.sshj.userauth.method.AbstractAuthMethod
Public Constructors
AuthPassword(PasswordFinder pwdf)
Public Methods
SSHPacket buildReq()
Builds a SSHPacket containing the fields common to all authentication method.
void handle(Message cmd, SSHPacket buf)
Delegate handling of some SSH packet to this object.
boolean shouldRetry()
Returns true if the associated PasswordFinder tells that we should retry with a new password that it will supply.
[Expand]
Inherited Methods
From class net.schmizz.sshj.userauth.method.AbstractAuthMethod
From class java.lang.Object
From interface net.schmizz.sshj.common.SSHPacketHandler
From interface net.schmizz.sshj.userauth.method.AuthMethod

Fields

private final PasswordFinder pwdf

Public Constructors

public AuthPassword (PasswordFinder pwdf)

Parameters
pwdf

Public Methods

public SSHPacket buildReq ()

Builds a SSHPacket containing the fields common to all authentication method. Method-specific fields can further be put into this buffer.

public void handle (Message cmd, SSHPacket buf)

Delegate handling of some SSH packet to this object.

Parameters
cmd The SSH message identifier
buf SSHPacket containing rest of the request

public boolean shouldRetry ()

Returns true if the associated PasswordFinder tells that we should retry with a new password that it will supply.