com.sshtools.j2ssh.authentication
Class SshMsgUserAuthRequest

java.lang.Object
  |
  +--com.sshtools.j2ssh.transport.SshMessage
        |
        +--com.sshtools.j2ssh.authentication.SshMsgUserAuthRequest
Direct Known Subclasses:
SshMsgUserAuthPwdRequest

public class SshMsgUserAuthRequest
extends SshMessage

Implements the SSH_MSG_USERAUTH_REQUEST message

Version:
1.0
Author:
Lee David Painter ( lee@sshtools.com )

Field Summary
static int SSH_MSG_USERAUTH_REQUEST
          The message id
 
Constructor Summary
SshMsgUserAuthRequest()
          Constructs the message
SshMsgUserAuthRequest(java.lang.String username, java.lang.String serviceName, java.lang.String methodName)
           Constructs the message with the details supplied.
 
Method Summary
protected  void constructByteArray(ByteArrayWriter baw)
           Constucts a byte array containing the message.
protected  void constructMessage(ByteArrayReader bar)
           Constructs the message from a byte array.
 java.lang.String getMessageName()
           Gets the message name for debugging.
 java.lang.String getMethodName()
          Gets the method name.
 java.lang.String getServiceName()
           Gets the service name.
 java.lang.String getUsername()
           Gets the username.
 
Methods inherited from class com.sshtools.j2ssh.transport.SshMessage
fromByteArray, getMessageId, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSH_MSG_USERAUTH_REQUEST

public static final int SSH_MSG_USERAUTH_REQUEST
The message id

See Also:
Constant Field Values
Constructor Detail

SshMsgUserAuthRequest

public SshMsgUserAuthRequest()
Constructs the message


SshMsgUserAuthRequest

public SshMsgUserAuthRequest(java.lang.String username,
                             java.lang.String serviceName,
                             java.lang.String methodName)

Constructs the message with the details supplied.

Parameters:
username - The username
serviceName - The service to start after authentication
methodName - The authentication method name
Method Detail

getMessageName

public java.lang.String getMessageName()

Gets the message name for debugging.

Specified by:
getMessageName in class SshMessage
Returns:

getUsername

public java.lang.String getUsername()

Gets the username.

Returns:
The username value

getServiceName

public java.lang.String getServiceName()

Gets the service name.

Returns:
The serviceName value

getMethodName

public java.lang.String getMethodName()
Gets the method name.

Returns:
The method name

constructMessage

protected void constructMessage(ByteArrayReader bar)
                         throws InvalidMessageException

Constructs the message from a byte array.

Specified by:
constructMessage in class SshMessage
Parameters:
bar - The byte array being read.
Throws:
InvalidMessageException

constructByteArray

protected void constructByteArray(ByteArrayWriter baw)
                           throws InvalidMessageException

Constucts a byte array containing the message.

Specified by:
constructByteArray in class SshMessage
Parameters:
baw - The byte array being written
Throws:
InvalidMessageException


Copyright © 2002 Sshtools.com. All Rights Reserved.