| java.lang.Object |
| ↳ |
net.schmizz.sshj.userauth.method.AbstractAuthMethod |
Known Direct Subclasses
|
Known Indirect Subclasses
| AuthHostbased |
Implements the hostbased SSH authentication method. |
| AuthPublickey |
Implements the "publickey" SSH authentication method. |
|
Class Overview
This abstract class for AuthMethod implements common or default functionality.
Fields
protected
final
Logger
log
private
final
String
name
Protected Constructors
protected
AbstractAuthMethod
(String name)
Parameters
| name
| The name of this authentication method. |
Public Methods
Delegate handling of some SSH packet to this object.
public
void
init
(AuthParams params)
This method must be called before requesting authentication with this method.
Parameters
| params
| Parameters needed for authentication
|
public
boolean
shouldRetry
()
Protected Methods
protected
SSHPacket
buildReq
()
Builds a SSHPacket containing the fields common to all authentication method. Method-specific fields can
further be put into this buffer.