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 TypeMethodDescriptionvoidintauthenticate(SshAuthenticationClient auth, Service serviceToStart) getAvailableAuths(String username, String serviceName) getBannerMessage(int timeout) byte[]protected voidCalled when the service is accepted by the remote server.protected voidonServiceInit(int startMode) Called when the service is intialized.protected voidprotected voidonStart()Called when the service is started.voidreadMessage(int messageId) readMessage(int[] messageId) voidregisterMessage(Class cls, int messageId) voidsendMessage(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:ServiceCalled when the service is accepted by the remote server.
- Specified by:
onServiceAcceptin classService- Throws:
IOException
-
onStart
protected void onStart()Description copied from class:ServiceCalled when the service is started.
-
onServiceInit
Description copied from class:ServiceCalled when the service is intialized.
- Specified by:
onServiceInitin classService- Parameters:
startMode-- Throws:
IOExceptionIOException
-
onServiceRequest
- Specified by:
onServiceRequestin classService- Throws:
IOExceptionIOException
-
addEventListener
- Parameters:
listener-
-
getAvailableAuths
- Parameters:
username-serviceName-- Returns:
- Throws:
IOExceptionSshException
-
authenticate
- Parameters:
auth-serviceToStart-- Returns:
- Throws:
IOExceptionSshException
-
sendMessage
- Parameters:
msg-- Throws:
IOException
-
getSessionIdentifier
public byte[] getSessionIdentifier()- Returns:
-
registerMessage
- Parameters:
cls-messageId-
-
readMessage
- Parameters:
messageId-- Returns:
- Throws:
TerminatedStateExceptionIOException
-
readMessage
- Parameters:
messageId-- Returns:
- Throws:
TerminatedStateExceptionIOException
-
readAuthenticationState
- Throws:
IOExceptionTerminatedStateException
-
getBannerMessage
- Parameters:
timeout-- Returns:
- Throws:
IOExceptionSshException
-