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, requestpublic AuthPassword(PasswordFinder pwdf)
public SSHPacket buildReq() throws UserAuthException
AbstractAuthMethodSSHPacket containing the fields common to all authentication method. Method-specific fields can
further be put into this buffer.buildReq in class AbstractAuthMethodUserAuthExceptionpublic void handle(Message cmd, SSHPacket buf) throws UserAuthException, TransportException
SSHPacketHandlerhandle in interface SSHPacketHandlerhandle in class AbstractAuthMethodcmd - the SSH message identifierbuf - SSHPacket containing rest of the requestUserAuthExceptionTransportExceptionpublic boolean shouldRetry()
true if the associated PasswordFinder tells that we should retry with a new password that
it will supply.shouldRetry in interface AuthMethodshouldRetry in class AbstractAuthMethod