public class AuthenticationProtocolClient extends Service
ACCEPTING_SERVICE, messageStore, REQUESTING_SERVICE, startMode, state, transport
Constructor and Description |
---|
AuthenticationProtocolClient()
Creates a new AuthenticationProtocolClient object.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(AuthenticationProtocolListener listener) |
int |
authenticate(SshAuthenticationClient auth,
Service serviceToStart) |
java.util.List |
getAvailableAuths(java.lang.String username,
java.lang.String serviceName) |
java.lang.String |
getBannerMessage(int timeout) |
byte[] |
getSessionIdentifier() |
protected void |
onServiceAccept()
Called when the service is accepted by the remote server.
|
protected void |
onServiceInit(int startMode)
Called when the service is intialized.
|
protected void |
onServiceRequest() |
protected void |
onStart()
Called when the service is started.
|
void |
readAuthenticationState() |
SshMessage |
readMessage(int messageId) |
SshMessage |
readMessage(int[] messageId) |
void |
registerMessage(java.lang.Class cls,
int messageId) |
void |
sendMessage(SshMessage msg) |
getServiceName, getState, init, sendServiceAccept, start, stop
public AuthenticationProtocolClient()
protected void onServiceAccept() throws java.io.IOException
Service
Called when the service is accepted by the remote server.
onServiceAccept
in class Service
java.io.IOException
protected void onStart()
Service
Called when the service is started.
protected void onServiceInit(int startMode) throws java.io.IOException
Service
Called when the service is intialized.
onServiceInit
in class Service
startMode
- java.io.IOException
java.io.IOException
protected void onServiceRequest() throws java.io.IOException
onServiceRequest
in class Service
java.io.IOException
java.io.IOException
public void addEventListener(AuthenticationProtocolListener listener)
listener
- public java.util.List getAvailableAuths(java.lang.String username, java.lang.String serviceName) throws java.io.IOException
username
- serviceName
- java.io.IOException
SshException
public int authenticate(SshAuthenticationClient auth, Service serviceToStart) throws java.io.IOException
auth
- serviceToStart
- java.io.IOException
SshException
public void sendMessage(SshMessage msg) throws java.io.IOException
msg
- java.io.IOException
public byte[] getSessionIdentifier()
public void registerMessage(java.lang.Class cls, int messageId)
cls
- messageId
- public SshMessage readMessage(int messageId) throws TerminatedStateException, java.io.IOException
messageId
- TerminatedStateException
java.io.IOException
public SshMessage readMessage(int[] messageId) throws TerminatedStateException, java.io.IOException
messageId
- TerminatedStateException
java.io.IOException
public void readAuthenticationState() throws java.io.IOException, TerminatedStateException
java.io.IOException
TerminatedStateException
public java.lang.String getBannerMessage(int timeout) throws java.io.IOException
timeout
- java.io.IOException
SshException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.