Secure iNet Factory

com.jscape.inet.ssh.authentication.messages
Class SshMsgUserauthBanner

java.lang.Object
  extended by com.jscape.inet.ssh.transport.Message
      extended by com.jscape.inet.ssh.authentication.messages.SshMsgUserauthBanner

public final class SshMsgUserauthBanner
extends Message

Represents SSH_MSG_USERAUTH_BANNER type of SSH2 protocol messages.

Version:
1.0
Author:
Alex

Field Summary
static int TYPE
          Message type code.
 
Constructor Summary
SshMsgUserauthBanner(java.lang.String message, java.lang.String languageTag)
          Creates message giving corresponded attributes.
 
Method Summary
 java.lang.String getLanguageTag()
          Returns language tag.
 java.lang.String getMessage()
          Returns banner message.
static SshMsgUserauthBanner readFrom(java.io.InputStream in)
           
 java.lang.String toString()
          Returns the string representation of this message.
 void writeTo(java.io.OutputStream out)
           
 
Methods inherited from class com.jscape.inet.ssh.transport.Message
getId, getType, readFrom, readFrom, setId, writeTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final int TYPE
Message type code.

See Also:
Constant Field Values
Constructor Detail

SshMsgUserauthBanner

public SshMsgUserauthBanner(java.lang.String message,
                            java.lang.String languageTag)
Creates message giving corresponded attributes.

Parameters:
message - banner message.
languageTag - language tag.
Method Detail

readFrom

public static SshMsgUserauthBanner readFrom(java.io.InputStream in)
                                     throws java.io.IOException
Parameters:
in -
Returns:
SshMsgUserauthBanner instance
Throws:
java.io.IOException

getMessage

public java.lang.String getMessage()
Returns banner message.

Returns:
banner message.

getLanguageTag

public java.lang.String getLanguageTag()
Returns language tag.

Returns:
language tag.

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Overrides:
writeTo in class Message
Parameters:
out -
Throws:
java.io.IOException

toString

public java.lang.String toString()
Returns the string representation of this message.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this message

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved