org.jabber.jabberbeans.serverside
Class Handshake

java.lang.Object
  |
  +--org.jabber.jabberbeans.XMLData
        |
        +--org.jabber.jabberbeans.serverside.Handshake

public class Handshake
extends XMLData
implements Packet

a Handshake is used during the authentication process of a component communicating via TCP. The contents are a SHA1 hash of a 'seed' value sent as an id, and a 'secret' known by the component and server. The code to generate this hash is external to this representation class.

Version:
$Revision: 1.1.1.1 $
Author:
David Waite <dwaite@jabber.com>, $Author: lucky $
See Also:
Serialized Form

Field Summary
private  java.lang.String handshake
          content string
 
Constructor Summary
Handshake(java.lang.String handshake)
          Creates a new Handshake instance.
 
Method Summary
 void appendItem(java.lang.StringBuffer retval)
          appendItem appends the XML representation of the current packet data to the specified StringBuffer.
 java.lang.String getContent()
          getContent returns the handshake value
 
Methods inherited from class org.jabber.jabberbeans.XMLData
appendAttrib, appendAttrib, appendChild, appendChild, escapeString, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

handshake

private java.lang.String handshake
content string
Constructor Detail

Handshake

public Handshake(java.lang.String handshake)
Creates a new Handshake instance.
Parameters:
handshake - a String value, the contents of the handshake
Method Detail

getContent

public java.lang.String getContent()
getContent returns the handshake value
Returns:
a String value

appendItem

public void appendItem(java.lang.StringBuffer retval)
appendItem appends the XML representation of the current packet data to the specified StringBuffer.
Specified by:
appendItem in interface Packet
Overrides:
appendItem in class XMLData
Parameters:
retval - The StringBuffer to append to