com.sshtools.j2ssh.authentication

Class AuthenticationProtocolClient


public class AuthenticationProtocolClient
extends Service

Version:
$Revision: 1.27 $
Author:
$author$

Field Summary

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

ACCEPTING_SERVICE, REQUESTING_SERVICE, messageStore, startMode, state, transport

Constructor Summary

AuthenticationProtocolClient()
Creates a new AuthenticationProtocolClient object.

Method Summary

void
addEventListener(AuthenticationProtocolListener listener)
int
authenticate(SshAuthenticationClient auth, Service serviceToStart)
List
getAvailableAuths(String username, String serviceName)
String
getBannerMessage(int timeout)
byte[]
getSessionIdentifier()
protected void
onServiceAccept()
protected void
onServiceInit(int startMode)
protected void
onServiceRequest()
protected void
onStart()
void
readAuthenticationState()
SshMessage
readMessage(int messageId)
SshMessage
readMessage(int[] messageId)
void
registerMessage(Class cls, int messageId)
void
sendMessage(SshMessage msg)

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

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

Constructor Details

AuthenticationProtocolClient

public AuthenticationProtocolClient()
Creates a new AuthenticationProtocolClient object.

Method Details

addEventListener

public void addEventListener(AuthenticationProtocolListener listener)
Parameters:
listener -

authenticate

public int authenticate(SshAuthenticationClient auth,
                        Service serviceToStart)
            throws IOException
Parameters:
auth -
serviceToStart -
Returns:

getAvailableAuths

public List getAvailableAuths(String username,
                              String serviceName)
            throws IOException
Parameters:
username -
serviceName -
Returns:

getBannerMessage

public String getBannerMessage(int timeout)
            throws IOException
Parameters:
timeout -
Returns:

getSessionIdentifier

public byte[] getSessionIdentifier()
Returns:

onServiceAccept

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

onServiceInit

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

onServiceRequest

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

onStart

protected void onStart()
Overrides:
onStart in interface Service

readAuthenticationState

public void readAuthenticationState()
            throws IOException,
                   TerminatedStateException

readMessage

public SshMessage readMessage(int messageId)
            throws TerminatedStateException,
                   IOException
Parameters:
messageId -
Returns:

readMessage

public SshMessage readMessage(int[] messageId)
            throws TerminatedStateException,
                   IOException
Parameters:
messageId -
Returns:

registerMessage

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

sendMessage

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

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