public class AuthPassword extends AbstractAuthMethod
password
authentication method. Password-change request handling is not currently supported.log, params
Constructor and Description |
---|
AuthPassword(PasswordFinder pwdf) |
Modifier and Type | Method and Description |
---|---|
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. |
getName, init, makeAccountResource, request
public AuthPassword(PasswordFinder pwdf)
public SSHPacket buildReq() throws UserAuthException
AbstractAuthMethod
SSHPacket
containing the fields common to all authentication method. Method-specific fields can
further be put into this buffer.buildReq
in class AbstractAuthMethod
UserAuthException
public void handle(Message cmd, SSHPacket buf) throws UserAuthException, TransportException
SSHPacketHandler
handle
in interface SSHPacketHandler
handle
in class AbstractAuthMethod
cmd
- the SSH message identifier
buf
- SSHPacket
containing rest of the requestUserAuthException
TransportException
public boolean shouldRetry()
true
if the associated PasswordFinder
tells that we should retry with a new password that
it will supply.shouldRetry
in interface AuthMethod
shouldRetry
in class AbstractAuthMethod