public class AuthenticationProtocolServer extends AsyncService
threadACCEPTING_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, rungetServiceName, getState, init, sendServiceAccept, start, stoppublic AuthenticationProtocolServer()
protected void onServiceAccept()
throws java.io.IOException
ServiceCalled when the service is accepted by the remote server.
onServiceAccept in class Servicejava.io.IOExceptionprotected void onServiceInit(int startMode)
throws java.io.IOException
ServiceCalled when the service is intialized.
onServiceInit in class ServicestartMode - java.io.IOExceptionpublic byte[] getSessionIdentifier()
public TransportProtocolState getConnectionState()
public void sendMessage(SshMessage msg) throws java.io.IOException
msg - java.io.IOExceptionpublic SshMessage readMessage() throws java.io.IOException
java.io.IOExceptionSshExceptionpublic void registerMessage(int messageId,
java.lang.Class cls)
messageId - cls - protected void onServiceRequest()
throws java.io.IOException
onServiceRequest in class Servicejava.io.IOExceptionAuthenticationProtocolExceptionprotected void onMessageReceived(SshMessage msg) throws java.io.IOException
AsyncServiceCalled by the service thread when an asyncronous message is received.
onMessageReceived in class AsyncServicemsg - java.io.IOExceptionAuthenticationProtocolExceptionprotected int[] getAsyncMessageFilter()
AsyncServiceImplement this method by returning the message ids of the asyncrounous messages your implementation wants to receive.
getAsyncMessageFilter in class AsyncServicepublic void acceptService(Service service)
service - protected void onStop()
AsyncServiceThe service thread calls this method when the thread is exiting.
onStop in class AsyncServiceCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.