public class AuthenticationProtocolServer extends AsyncService
thread
ACCEPTING_SERVICE, messageStore, REQUESTING_SERVICE, startMode, state, transport
Constructor and Description |
---|
AuthenticationProtocolServer()
Creates a new AuthenticationProtocolServer object.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptService(Service service) |
protected int[] |
getAsyncMessageFilter()
Implement this method by returning the message ids of the asyncrounous
messages your implementation wants to receive.
|
TransportProtocolState |
getConnectionState() |
byte[] |
getSessionIdentifier() |
protected void |
onMessageReceived(SshMessage msg)
Called by the service thread when an asyncronous message is received.
|
protected void |
onServiceAccept()
Called when the service is accepted by the remote server.
|
protected void |
onServiceInit(int startMode)
Called when the service is intialized.
|
protected void |
onServiceRequest() |
protected void |
onStop()
The service thread calls this method when the thread is exiting.
|
SshMessage |
readMessage() |
void |
registerMessage(int messageId,
java.lang.Class cls) |
void |
sendMessage(SshMessage msg) |
onStart, run
getServiceName, getState, init, sendServiceAccept, start, stop
public AuthenticationProtocolServer()
protected void onServiceAccept() throws java.io.IOException
Service
Called when the service is accepted by the remote server.
onServiceAccept
in class Service
java.io.IOException
protected void onServiceInit(int startMode) throws java.io.IOException
Service
Called when the service is intialized.
onServiceInit
in class Service
startMode
- java.io.IOException
public byte[] getSessionIdentifier()
public TransportProtocolState getConnectionState()
public void sendMessage(SshMessage msg) throws java.io.IOException
msg
- java.io.IOException
public SshMessage readMessage() throws java.io.IOException
java.io.IOException
SshException
public void registerMessage(int messageId, java.lang.Class cls)
messageId
- cls
- protected void onServiceRequest() throws java.io.IOException
onServiceRequest
in class Service
java.io.IOException
AuthenticationProtocolException
protected void onMessageReceived(SshMessage msg) throws java.io.IOException
AsyncService
Called by the service thread when an asyncronous message is received.
onMessageReceived
in class AsyncService
msg
- java.io.IOException
AuthenticationProtocolException
protected int[] getAsyncMessageFilter()
AsyncService
Implement this method by returning the message ids of the asyncrounous messages your implementation wants to receive.
getAsyncMessageFilter
in class AsyncService
public void acceptService(Service service)
service
- protected void onStop()
AsyncService
The service thread calls this method when the thread is exiting.
onStop
in class AsyncService
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.