org.jabber.jabberbeans.serverside
Class Handshake
java.lang.Object
|
+--org.jabber.jabberbeans.XMLData
|
+--org.jabber.jabberbeans.serverside.Handshake
- All Implemented Interfaces:
- Packet, java.io.Serializable
- 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.
- See Also:
- Serialized Form
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jabber.jabberbeans.Packet |
toString |
Handshake
public Handshake(java.lang.String handshake)
- Creates a new
Handshake
instance.
- Parameters:
handshake
- a String
value, the contents of the handshake
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
- Specified by:
appendItem
in class XMLData
- Parameters:
retval
- The StringBuffer
to append to