Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.sshtools.j2ssh.transport.Service
com.sshtools.j2ssh.authentication.AuthenticationProtocolClient
public class AuthenticationProtocolClient
extends Service
Field Summary |
Fields inherited from class com.sshtools.j2ssh.transport.Service | |
ACCEPTING_SERVICE , REQUESTING_SERVICE , messageStore , startMode , state , transport |
Constructor Summary | |
|
Method Summary | |
void | |
int |
|
List |
|
String |
|
byte[] | |
protected void | |
protected void |
|
protected void | |
protected void |
|
void | |
SshMessage |
|
SshMessage |
|
void |
|
void |
|
Methods inherited from class com.sshtools.j2ssh.transport.Service | |
getServiceName , getState , init , onServiceAccept , onServiceInit , onServiceRequest , onStart , sendServiceAccept , start , stop |
public AuthenticationProtocolClient()
Creates a new AuthenticationProtocolClient object.
public void addEventListener(AuthenticationProtocolListener listener)
- Parameters:
listener
-
public int authenticate(SshAuthenticationClient auth, Service serviceToStart) throws IOException
- Parameters:
auth
-serviceToStart
-
- Returns:
public List getAvailableAuths(String username, String serviceName) throws IOException
- Parameters:
username
-serviceName
-
- Returns:
public String getBannerMessage(int timeout) throws IOException
- Parameters:
timeout
-
- Returns:
public byte[] getSessionIdentifier()
- Returns:
protected void onServiceAccept() throws IOException
- Overrides:
- onServiceAccept in interface Service
protected void onServiceInit(int startMode) throws IOException
- Overrides:
- onServiceInit in interface Service
- Parameters:
startMode
-
protected void onServiceRequest() throws IOException
- Overrides:
- onServiceRequest in interface Service
public void readAuthenticationState() throws IOException, TerminatedStateException
- Throws:
TerminatedStateException
-
public SshMessage readMessage(int messageId) throws TerminatedStateException, IOException
- Parameters:
messageId
-
- Returns:
- Throws:
TerminatedStateException
-
public SshMessage readMessage(int[] messageId) throws TerminatedStateException, IOException
- Parameters:
messageId
-
- Returns:
- Throws:
TerminatedStateException
-
public void registerMessage(Class cls, int messageId)
- Parameters:
cls
-messageId
-