com.sshtools.j2ssh.agent
Class SshAgentFailure

java.lang.Object
  extended by com.sshtools.j2ssh.subsystem.SubsystemMessage
      extended by com.sshtools.j2ssh.agent.SshAgentFailure

 class SshAgentFailure
extends SubsystemMessage


Field Summary
private  int errorcode
           
static int SSH_AGENT_ERROR_DECRYPT_FAILED
           
static int SSH_AGENT_ERROR_DENIED
           
static int SSH_AGENT_ERROR_FAILURE
           
static int SSH_AGENT_ERROR_KEY_NOT_FOUND
           
static int SSH_AGENT_ERROR_KEY_NOT_SUITABLE
           
static int SSH_AGENT_ERROR_SIZE_ERROR
           
static int SSH_AGENT_ERROR_TIMEOUT
           
static int SSH_AGENT_ERROR_UNSUPPORTED_OP
           
static int SSH_AGENT_FAILURE
           
 
Constructor Summary
SshAgentFailure()
          Creates a new SshAgentFailure object.
SshAgentFailure(int errorcode)
          Creates a new SshAgentFailure object.
 
Method Summary
 void constructByteArray(ByteArrayWriter baw)
           
 void constructMessage(ByteArrayReader bar)
           
 int getErrorCode()
           
 java.lang.String getMessageName()
           
 
Methods inherited from class com.sshtools.j2ssh.subsystem.SubsystemMessage
fromByteArray, getMessageType, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSH_AGENT_FAILURE

public static final int SSH_AGENT_FAILURE
See Also:
Constant Field Values

SSH_AGENT_ERROR_TIMEOUT

public static final int SSH_AGENT_ERROR_TIMEOUT
See Also:
Constant Field Values

SSH_AGENT_ERROR_KEY_NOT_FOUND

public static final int SSH_AGENT_ERROR_KEY_NOT_FOUND
See Also:
Constant Field Values

SSH_AGENT_ERROR_DECRYPT_FAILED

public static final int SSH_AGENT_ERROR_DECRYPT_FAILED
See Also:
Constant Field Values

SSH_AGENT_ERROR_SIZE_ERROR

public static final int SSH_AGENT_ERROR_SIZE_ERROR
See Also:
Constant Field Values

SSH_AGENT_ERROR_KEY_NOT_SUITABLE

public static final int SSH_AGENT_ERROR_KEY_NOT_SUITABLE
See Also:
Constant Field Values

SSH_AGENT_ERROR_DENIED

public static final int SSH_AGENT_ERROR_DENIED
See Also:
Constant Field Values

SSH_AGENT_ERROR_FAILURE

public static final int SSH_AGENT_ERROR_FAILURE
See Also:
Constant Field Values

SSH_AGENT_ERROR_UNSUPPORTED_OP

public static final int SSH_AGENT_ERROR_UNSUPPORTED_OP
See Also:
Constant Field Values

errorcode

private int errorcode
Constructor Detail

SshAgentFailure

public SshAgentFailure()
Creates a new SshAgentFailure object.


SshAgentFailure

public SshAgentFailure(int errorcode)
Creates a new SshAgentFailure object.

Parameters:
errorcode -
Method Detail

getMessageName

public java.lang.String getMessageName()
Specified by:
getMessageName in class SubsystemMessage
Returns:

getErrorCode

public int getErrorCode()
Returns:

constructByteArray

public void constructByteArray(ByteArrayWriter baw)
                        throws java.io.IOException,
                               InvalidMessageException
Specified by:
constructByteArray in class SubsystemMessage
Parameters:
baw -
Throws:
java.io.IOException
InvalidMessageException - DOCUMENT ME!
InvalidMessageException

constructMessage

public void constructMessage(ByteArrayReader bar)
                      throws java.io.IOException,
                             InvalidMessageException
Specified by:
constructMessage in class SubsystemMessage
Parameters:
bar -
Throws:
java.io.IOException
InvalidMessageException - DOCUMENT ME!
InvalidMessageException