Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sshtools.daemon.authentication
Class AuthenticationProtocolServer

    java.lang.Object
      com.sshtools.j2ssh.transport.Service
          com.sshtools.j2ssh.transport.AsyncService
              com.sshtools.daemon.authentication.AuthenticationProtocolServer

All Implemented Interfaces:
  java.lang.Runnable

public class AuthenticationProtocolServer
extends AsyncService

DOCUMENT ME!

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
`AuthenticationProtocolServer()` Creates a new AuthenticationProtocolServer object.

Method Summary
`void` | `acceptService(Service service)` DOCUMENT ME!
`protected int[]` | `getAsyncMessageFilter()` DOCUMENT ME!
`TransportProtocolState` | `getConnectionState()` DOCUMENT ME!
`byte[]` | `getSessionIdentifier()` DOCUMENT ME!
`protected void` | `onMessageReceived(SshMessage msg)` DOCUMENT ME!
`protected void` | `onServiceAccept()` DOCUMENT ME!
`protected void` | `onServiceInit(int startMode)` DOCUMENT ME!
`protected void` | `onServiceRequest()` DOCUMENT ME!
`protected void` | `onStop()` DOCUMENT ME!
`SshMessage` | `readMessage()` DOCUMENT ME!
`void` | `registerMessage(int messageId, java.lang.Class cls)` DOCUMENT ME!
`void` | `sendMessage(SshMessage msg)` DOCUMENT ME!

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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AuthenticationProtocolServer

    public AuthenticationProtocolServer()

  Creates a new AuthenticationProtocolServer object.

Method Detail

### onServiceAccept

    protected void onServiceAccept()
                            throws java.io.IOException

  DOCUMENT ME!

  Specified by:
    `onServiceAccept` in class `Service`
  Throws:
    `java.io.IOException` - DOCUMENT ME!

### onServiceInit

    protected void onServiceInit(int startMode)
                          throws java.io.IOException

  DOCUMENT ME!

  Specified by:
    `onServiceInit` in class `Service`
  Parameters:
    `startMode` - DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!

### getSessionIdentifier

    public byte[] getSessionIdentifier()

  DOCUMENT ME!

  Returns:
    DOCUMENT ME!

### getConnectionState

    public TransportProtocolState getConnectionState()

  DOCUMENT ME!

  Returns:
    DOCUMENT ME!

### sendMessage

    public void sendMessage(SshMessage msg)
                     throws java.io.IOException

  DOCUMENT ME!

  Parameters:
    `msg` - DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!

### readMessage

    public SshMessage readMessage()
                           throws java.io.IOException

  DOCUMENT ME!

  Returns:
    DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!
    `SshException` - DOCUMENT ME!

### registerMessage

    public void registerMessage(int messageId,
                                java.lang.Class cls)

  DOCUMENT ME!

  Parameters:
    `messageId` - DOCUMENT ME!
    `cls` - DOCUMENT ME!

### onServiceRequest

    protected void onServiceRequest()
                             throws java.io.IOException

  DOCUMENT ME!

  Specified by:
    `onServiceRequest` in class `Service`
  Throws:
    `java.io.IOException` - DOCUMENT ME!
    `AuthenticationProtocolException` - DOCUMENT ME!

### onMessageReceived

    protected void onMessageReceived(SshMessage msg)
                              throws java.io.IOException

  DOCUMENT ME!

  Specified by:
    `onMessageReceived` in class `AsyncService`
  Parameters:
    `msg` - DOCUMENT ME!
  Throws:
    `java.io.IOException` - DOCUMENT ME!
    `AuthenticationProtocolException` - DOCUMENT ME!

### getAsyncMessageFilter

    protected int[] getAsyncMessageFilter()

  DOCUMENT ME!

  Specified by:
    `getAsyncMessageFilter` in class `AsyncService`
  Returns:
    DOCUMENT ME!

### acceptService

    public void acceptService(Service service)

  DOCUMENT ME!

  Parameters:
    `service` - DOCUMENT ME!

### onStop

    protected void onStop()

  DOCUMENT ME!

  Specified by:
    `onStop` in class `AsyncService`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD