public abstract class

AbstractAuthMethod

extends Object
implements AuthMethod
java.lang.Object
   ↳ net.schmizz.sshj.userauth.method.AbstractAuthMethod
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

This abstract class for AuthMethod implements common or default functionality.

Summary

Fields
protected final Logger log Logger
private final String name
protected AuthParams params AuthParams useful for building request.
Protected Constructors
AbstractAuthMethod(String name)
Public Methods
String getName()
void handle(Message msg, SSHPacket buf)
Delegate handling of some SSH packet to this object.
void init(AuthParams params)
This method must be called before requesting authentication with this method.
void request()
boolean shouldRetry()
Protected Methods
SSHPacket buildReq()
Builds a SSHPacket containing the fields common to all authentication method.
AccountResource makeAccountResource()
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.schmizz.sshj.common.SSHPacketHandler
From interface net.schmizz.sshj.userauth.method.AuthMethod

Fields

protected final Logger log

Logger

private final String name

protected AuthParams params

AuthParams useful for building request.

Protected Constructors

protected AbstractAuthMethod (String name)

Parameters
name The name of this authentication method.

Public Methods

public String getName ()

public void handle (Message msg, SSHPacket buf)

Delegate handling of some SSH packet to this object.

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

public void init (AuthParams params)

This method must be called before requesting authentication with this method.

Parameters
params Parameters needed for authentication

public void request ()

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.

protected AccountResource makeAccountResource ()