com.sshtools.daemon.authentication

Class AuthenticationProtocolServer

Implemented Interfaces:
Runnable

public class AuthenticationProtocolServer
extends AsyncService

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, REQUESTING_SERVICE, messageStore, startMode, state, transport

Constructor Summary

AuthenticationProtocolServer()
Creates a new AuthenticationProtocolServer object.

Method Summary

void
acceptService(Service service)
protected int[]
getAsyncMessageFilter()
TransportProtocolState
getConnectionState()
byte[]
getSessionIdentifier()
protected void
onMessageReceived(SshMessage msg)
protected void
onServiceAccept()
protected void
onServiceInit(int startMode)
protected void
onServiceRequest()
protected void
onStop()
SshMessage
readMessage()
void
registerMessage(int messageId, Class cls)
void
sendMessage(SshMessage msg)

Methods inherited from class com.sshtools.j2ssh.transport.AsyncService

getAsyncMessageFilter, onMessageReceived, onStart, onStop, run

Methods inherited from class com.sshtools.j2ssh.transport.Service

getServiceName, getState, init, onServiceAccept, onServiceInit, onServiceRequest, onStart, sendServiceAccept, start, stop

Constructor Details

AuthenticationProtocolServer

public AuthenticationProtocolServer()
Creates a new AuthenticationProtocolServer object.

Method Details

acceptService

public void acceptService(Service service)
Parameters:
service -

getAsyncMessageFilter

protected int[] getAsyncMessageFilter()
Overrides:
getAsyncMessageFilter in interface AsyncService
Returns:

getConnectionState

public TransportProtocolState getConnectionState()
Returns:

getSessionIdentifier

public byte[] getSessionIdentifier()
Returns:

onMessageReceived

protected void onMessageReceived(SshMessage msg)
            throws java.io.IOException
Overrides:
onMessageReceived in interface AsyncService
Parameters:
msg -

onServiceAccept

protected void onServiceAccept()
            throws java.io.IOException
Overrides:
onServiceAccept in interface Service

onServiceInit

protected void onServiceInit(int startMode)
            throws java.io.IOException
Overrides:
onServiceInit in interface Service
Parameters:
startMode -

onServiceRequest

protected void onServiceRequest()
            throws java.io.IOException
Overrides:
onServiceRequest in interface Service

onStop

protected void onStop()
Overrides:
onStop in interface AsyncService

readMessage

public SshMessage readMessage()
            throws IOException
Returns:

registerMessage

public void registerMessage(int messageId,
                            Class cls)
Parameters:
messageId -
cls -

sendMessage

public void sendMessage(SshMessage msg)
            throws IOException
Parameters:
msg -

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.