Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.jingle
Class ZrtpHashPacketExtension

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
      extended by net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.ZrtpHashPacketExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class ZrtpHashPacketExtension
extends AbstractPacketExtension

An implementation of the "zrtp-hash" attribute as described in the currently deferred XEP-0262.

Author:
Emil Ivov

Field Summary
static String ELEMENT_NAME
          The name of the "zrtp-hash" element.
static String NAMESPACE
          The namespace for the "zrtp-hash" element.
static String VERSION_ATTR_NAME
          The name of the version attribute.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
ZrtpHashPacketExtension()
          Creates a ZrtpHashPacketExtension instance for the specified namespace and elementName.
 
Method Summary
 String getValue()
          Returns the value of the ZRTP hash this element is carrying.
 String getVersion()
          Returns the ZRTP version used by the implementation that created the hash.
 void setValue(String value)
          Sets the value of the ZRTP hash this element will be carrying.
 void setVersion(String version)
          Sets the ZRTP version used by the implementation that created the hash.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
addChildExtension, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
The name of the "zrtp-hash" element.

See Also:
Constant Field Values

NAMESPACE

public static final String NAMESPACE
The namespace for the "zrtp-hash" element.

See Also:
Constant Field Values

VERSION_ATTR_NAME

public static final String VERSION_ATTR_NAME
The name of the version attribute.

See Also:
Constant Field Values
Constructor Detail

ZrtpHashPacketExtension

public ZrtpHashPacketExtension()
Creates a ZrtpHashPacketExtension instance for the specified namespace and elementName.

Method Detail

getVersion

public String getVersion()
Returns the ZRTP version used by the implementation that created the hash.

Returns:
the ZRTP version used by the implementation that created the hash.

setVersion

public void setVersion(String version)
Sets the ZRTP version used by the implementation that created the hash.

Parameters:
version - the ZRTP version used by the implementation that created the hash.

getValue

public String getValue()
Returns the value of the ZRTP hash this element is carrying.

Returns:
the value of the ZRTP hash this element is carrying.

setValue

public void setValue(String value)
Sets the value of the ZRTP hash this element will be carrying.

Parameters:
value - the value of the ZRTP hash this element will be carrying.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.