com.sshtools.j2ssh.authentication
Class SshMsgUserAuthFailure

java.lang.Object
  |
  +--com.sshtools.j2ssh.transport.SshMessage
        |
        +--com.sshtools.j2ssh.authentication.SshMsgUserAuthFailure

public class SshMsgUserAuthFailure
extends SshMessage

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

Field Summary
protected static int SSH_MSG_USERAUTH_FAILURE
          The message id
 
Constructor Summary
SshMsgUserAuthFailure()
           Constructs the message.
SshMsgUserAuthFailure(java.lang.String auths, boolean partialSuccess)
           Constructs the message.
 
Method Summary
protected  void constructByteArray(ByteArrayWriter baw)
           Constructs a byte array containing the message.
protected  void constructMessage(ByteArrayReader bar)
           Constructs the message from a byte array.
 java.util.List getAvailableAuthentications()
          Gets the available Authentications methods
 java.lang.String getMessageName()
           Gets the message name for debugging.
 boolean getPartialSuccess()
           Gets the partial success flag.
 
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_FAILURE

protected static final int SSH_MSG_USERAUTH_FAILURE
The message id

See Also:
Constant Field Values
Constructor Detail

SshMsgUserAuthFailure

public SshMsgUserAuthFailure(java.lang.String auths,
                             boolean partialSuccess)
                      throws InvalidMessageException

Constructs the message.

Parameters:
auths - The authentication methods available
partialSuccess - True if a partial success
Throws:
InvalidMessageException

SshMsgUserAuthFailure

public SshMsgUserAuthFailure()

Constructs the message.

Method Detail

getMessageName

public java.lang.String getMessageName()

Gets the message name for debugging.

Specified by:
getMessageName in class SshMessage
Returns:

constructMessage

protected void constructMessage(ByteArrayReader bar)
                         throws InvalidMessageException

Constructs the message from a byte array.

Specified by:
constructMessage in class SshMessage
Parameters:
bar - The data being read
Throws:
InvalidMessageException

constructByteArray

protected void constructByteArray(ByteArrayWriter baw)
                           throws InvalidMessageException

Constructs a byte array containing the message.

Specified by:
constructByteArray in class SshMessage
Parameters:
baw - The byte array being written to
Throws:
InvalidMessageException - Description of the Exception

getAvailableAuthentications

public java.util.List getAvailableAuthentications()
Gets the available Authentications methods

Returns:
The list of available authentications

getPartialSuccess

public boolean getPartialSuccess()

Gets the partial success flag.

Returns:
The partial success value


Copyright © 2002 Sshtools.com. All Rights Reserved.