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, stoppublic AuthenticationProtocolClient()
protected void onServiceAccept()
throws java.io.IOException
ServiceCalled when the service is accepted by the remote server.
onServiceAccept in class Servicejava.io.IOExceptionprotected void onStart()
ServiceCalled when the service is started.
protected void onServiceInit(int startMode)
throws java.io.IOException
ServiceCalled when the service is intialized.
onServiceInit in class ServicestartMode - java.io.IOExceptionjava.io.IOExceptionprotected void onServiceRequest()
throws java.io.IOException
onServiceRequest in class Servicejava.io.IOExceptionjava.io.IOExceptionpublic 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.IOExceptionSshExceptionpublic int authenticate(SshAuthenticationClient auth, Service serviceToStart) throws java.io.IOException
auth - serviceToStart - java.io.IOExceptionSshExceptionpublic void sendMessage(SshMessage msg) throws java.io.IOException
msg - java.io.IOExceptionpublic byte[] getSessionIdentifier()
public void registerMessage(java.lang.Class cls,
int messageId)
cls - messageId - public SshMessage readMessage(int messageId) throws TerminatedStateException, java.io.IOException
messageId - TerminatedStateExceptionjava.io.IOExceptionpublic SshMessage readMessage(int[] messageId) throws TerminatedStateException, java.io.IOException
messageId - TerminatedStateExceptionjava.io.IOExceptionpublic void readAuthenticationState()
throws java.io.IOException,
TerminatedStateException
java.io.IOExceptionTerminatedStateExceptionpublic java.lang.String getBannerMessage(int timeout)
throws java.io.IOException
timeout - java.io.IOExceptionSshExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.