Class AuthenticationProtocolServer
java.lang.Object
com.sshtools.j2ssh.transport.Service
com.sshtools.j2ssh.transport.AsyncService
com.sshtools.daemon.authentication.AuthenticationProtocolServer
- All Implemented Interfaces:
Runnable
- Version:
- $Revision: 1.11 $
- Author:
- $author$
-
Field Summary
Fields inherited from class com.sshtools.j2ssh.transport.AsyncService
threadFields inherited from class com.sshtools.j2ssh.transport.Service
ACCEPTING_SERVICE, messageStore, REQUESTING_SERVICE, startMode, state, transport -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AuthenticationProtocolServer object. -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptService(Service service) protected int[]Implement this method by returning the message ids of the asyncrounous messages your implementation wants to receive.byte[]protected voidCalled by the service thread when an asyncronous message is received.protected voidCalled when the service is accepted by the remote server.protected voidonServiceInit(int startMode) Called when the service is intialized.protected voidprotected voidonStop()The service thread calls this method when the thread is exiting.voidregisterMessage(int messageId, Class cls) voidsendMessage(SshMessage msg) Methods inherited from class com.sshtools.j2ssh.transport.AsyncService
onStart, runMethods inherited from class com.sshtools.j2ssh.transport.Service
getServiceName, getState, init, sendServiceAccept, start, stop
-
Constructor Details
-
AuthenticationProtocolServer
public AuthenticationProtocolServer()Creates a new AuthenticationProtocolServer object.
-
-
Method Details
-
onServiceAccept
Description copied from class:ServiceCalled when the service is accepted by the remote server.
- Specified by:
onServiceAcceptin classService- Throws:
IOException
-
onServiceInit
Description copied from class:ServiceCalled when the service is intialized.
- Specified by:
onServiceInitin classService- Parameters:
startMode-- Throws:
IOException
-
getSessionIdentifier
public byte[] getSessionIdentifier()- Returns:
-
getConnectionState
- Returns:
-
sendMessage
- Parameters:
msg-- Throws:
IOException
-
readMessage
- Returns:
- Throws:
IOExceptionSshException
-
registerMessage
- Parameters:
messageId-cls-
-
onServiceRequest
- Specified by:
onServiceRequestin classService- Throws:
IOExceptionAuthenticationProtocolException
-
onMessageReceived
Description copied from class:AsyncServiceCalled by the service thread when an asyncronous message is received.
- Specified by:
onMessageReceivedin classAsyncService- Parameters:
msg-- Throws:
IOExceptionAuthenticationProtocolException
-
getAsyncMessageFilter
protected int[] getAsyncMessageFilter()Description copied from class:AsyncServiceImplement this method by returning the message ids of the asyncrounous messages your implementation wants to receive.
- Specified by:
getAsyncMessageFilterin classAsyncService- Returns:
-
acceptService
- Parameters:
service-
-
onStop
protected void onStop()Description copied from class:AsyncServiceThe service thread calls this method when the thread is exiting.
- Specified by:
onStopin classAsyncService
-