Class AuthenticationProtocolClient
java.lang.Object
com.sshtools.j2ssh.transport.Service
com.sshtools.j2ssh.authentication.AuthenticationProtocolClient
- Version:
- $Revision: 1.27 $
- Author:
- $author$
-
Field Summary
Fields inherited from class com.sshtools.j2ssh.transport.Service
ACCEPTING_SERVICE, messageStore, REQUESTING_SERVICE, startMode, state, transport
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AuthenticationProtocolClient object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
authenticate
(SshAuthenticationClient auth, Service serviceToStart) getAvailableAuths
(String username, String serviceName) getBannerMessage
(int timeout) byte[]
protected void
Called when the service is accepted by the remote server.protected void
onServiceInit
(int startMode) Called when the service is intialized.protected void
protected void
onStart()
Called when the service is started.void
readMessage
(int messageId) 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, sendServiceAccept, start, stop
-
Constructor Details
-
AuthenticationProtocolClient
public AuthenticationProtocolClient()Creates a new AuthenticationProtocolClient object.
-
-
Method Details
-
onServiceAccept
Description copied from class:Service
Called when the service is accepted by the remote server.
- Specified by:
onServiceAccept
in classService
- Throws:
IOException
-
onStart
protected void onStart()Description copied from class:Service
Called when the service is started.
-
onServiceInit
Description copied from class:Service
Called when the service is intialized.
- Specified by:
onServiceInit
in classService
- Parameters:
startMode
-- Throws:
IOException
IOException
-
onServiceRequest
- Specified by:
onServiceRequest
in classService
- Throws:
IOException
IOException
-
addEventListener
- Parameters:
listener
-
-
getAvailableAuths
- Parameters:
username
-serviceName
-- Returns:
- Throws:
IOException
SshException
-
authenticate
- Parameters:
auth
-serviceToStart
-- Returns:
- Throws:
IOException
SshException
-
sendMessage
- Parameters:
msg
-- Throws:
IOException
-
getSessionIdentifier
public byte[] getSessionIdentifier()- Returns:
-
registerMessage
- Parameters:
cls
-messageId
-
-
readMessage
- Parameters:
messageId
-- Returns:
- Throws:
TerminatedStateException
IOException
-
readMessage
- Parameters:
messageId
-- Returns:
- Throws:
TerminatedStateException
IOException
-
readAuthenticationState
- Throws:
IOException
TerminatedStateException
-
getBannerMessage
- Parameters:
timeout
-- Returns:
- Throws:
IOException
SshException
-