|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sshtools.j2ssh.transport.Service
com.sshtools.j2ssh.authentication.AuthenticationProtocolClient
public class AuthenticationProtocolClient
| Field Summary |
|---|
| Fields inherited from class com.sshtools.j2ssh.transport.Service |
|---|
ACCEPTING_SERVICE, messageStore, REQUESTING_SERVICE, startMode, state, transport |
| Constructor Summary | |
|---|---|
AuthenticationProtocolClient()
Creates a new AuthenticationProtocolClient object. |
|
| Method Summary | |
|---|---|
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)
|
| 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 |
|---|
public AuthenticationProtocolClient()
| Method Detail |
|---|
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.
onStart in class Service
protected void onServiceInit(int startMode)
throws java.io.IOException
ServiceCalled when the service is intialized.
onServiceInit in class ServicestartMode -
java.io.IOException
java.io.IOException
protected void onServiceRequest()
throws java.io.IOException
onServiceRequest in class Servicejava.io.IOException
java.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.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.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 -
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||