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
thread
Fields 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 TypeMethodDescriptionvoid
acceptService
(Service service) protected int[]
Implement this method by returning the message ids of the asyncrounous messages your implementation wants to receive.byte[]
protected void
Called by the service thread when an asyncronous message is received.protected void
Called when the service is accepted by the remote server.protected void
onServiceInit
(int startMode) Called when the service is intialized.protected void
protected void
onStop()
The service thread calls this method when the thread is exiting.void
registerMessage
(int messageId, Class cls) void
sendMessage
(SshMessage msg) Methods inherited from class com.sshtools.j2ssh.transport.AsyncService
onStart, run
Methods 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:Service
Called when the service is accepted by the remote server.
- Specified by:
onServiceAccept
in classService
- Throws:
IOException
-
onServiceInit
Description copied from class:Service
Called when the service is intialized.
- Specified by:
onServiceInit
in classService
- Parameters:
startMode
-- Throws:
IOException
-
getSessionIdentifier
public byte[] getSessionIdentifier()- Returns:
-
getConnectionState
- Returns:
-
sendMessage
- Parameters:
msg
-- Throws:
IOException
-
readMessage
- Returns:
- Throws:
IOException
SshException
-
registerMessage
- Parameters:
messageId
-cls
-
-
onServiceRequest
- Specified by:
onServiceRequest
in classService
- Throws:
IOException
AuthenticationProtocolException
-
onMessageReceived
Description copied from class:AsyncService
Called by the service thread when an asyncronous message is received.
- Specified by:
onMessageReceived
in classAsyncService
- Parameters:
msg
-- Throws:
IOException
AuthenticationProtocolException
-
getAsyncMessageFilter
protected int[] getAsyncMessageFilter()Description copied from class:AsyncService
Implement this method by returning the message ids of the asyncrounous messages your implementation wants to receive.
- Specified by:
getAsyncMessageFilter
in classAsyncService
- Returns:
-
acceptService
- Parameters:
service
-
-
onStop
protected void onStop()Description copied from class:AsyncService
The service thread calls this method when the thread is exiting.
- Specified by:
onStop
in classAsyncService
-