Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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.CryptoPacketExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class CryptoPacketExtension
extends AbstractPacketExtension

The element containing details about an encryption algorithm that could be used during a jingle session.

Author:
Emil Ivov

Field Summary
static String CRYPTO_SUITE_ATTR_NAME
          The name of the 'crypto-suite' argument.
static String KEY_PARAMS_ATTR_NAME
          The name of the 'key-params' argument.
static String SESSION_PARAMS_ATTR_NAME
          The name of the 'session-params' argument.
static String TAG_ATTR_NAME
          The name of the 'tag' argument.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
CryptoPacketExtension()
          Creates a new CryptoPacketExtension instance with the proper element name and namespace.
 
Method Summary
 String getCryptoSuite()
          Returns the value of the crypto-suite attribute.
 String getKeyPaams()
          Returns the value of the key-params attribute.
 String getSessionPaams()
          Returns the value of the session-params attribute.
 String getTag()
          Returns the value of the tag attribute.
 void setCryptoSuite(String cryptoSuite)
          Sets the value of the crypto-suite attribute: an identifier that describes the encryption and authentication algorithms.
 void setKeyParams(String keyParams)
          Sets the value of the key-params attribute that provides one or more sets of keying material for the crypto-suite in question).
 void setSessionParams(String sessionParams)
          Sets the value of the session-params attribute that provides transport-specific parameters for SRTP negotiation.
 void setTag(String tag)
          Sets the value of the tag attribute: a decimal number used as an identifier for a particular crypto element.
 
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

CRYPTO_SUITE_ATTR_NAME

public static final String CRYPTO_SUITE_ATTR_NAME
The name of the 'crypto-suite' argument.

See Also:
Constant Field Values

KEY_PARAMS_ATTR_NAME

public static final String KEY_PARAMS_ATTR_NAME
The name of the 'key-params' argument.

See Also:
Constant Field Values

SESSION_PARAMS_ATTR_NAME

public static final String SESSION_PARAMS_ATTR_NAME
The name of the 'session-params' argument.

See Also:
Constant Field Values

TAG_ATTR_NAME

public static final String TAG_ATTR_NAME
The name of the 'tag' argument.

See Also:
Constant Field Values
Constructor Detail

CryptoPacketExtension

public CryptoPacketExtension()
Creates a new CryptoPacketExtension instance with the proper element name and namespace.

Method Detail

setCryptoSuite

public void setCryptoSuite(String cryptoSuite)
Sets the value of the crypto-suite attribute: an identifier that describes the encryption and authentication algorithms.

Parameters:
cryptoSuite - a String that describes the encryption and authentication algorithms.

getCryptoSuite

public String getCryptoSuite()
Returns the value of the crypto-suite attribute.

Returns:
a String that describes the encryption and authentication algorithms.

setKeyParams

public void setKeyParams(String keyParams)
Sets the value of the key-params attribute that provides one or more sets of keying material for the crypto-suite in question).

Parameters:
keyParams - a String that provides one or more sets of keying material for the crypto-suite in question.

getKeyPaams

public String getKeyPaams()
Returns the value of the key-params attribute.

Returns:
a String that provides one or more sets of keying material for the crypto-suite in question).

setSessionParams

public void setSessionParams(String sessionParams)
Sets the value of the session-params attribute that provides transport-specific parameters for SRTP negotiation.

Parameters:
sessionParams - a String that provides transport-specific parameters for SRTP negotiation.

getSessionPaams

public String getSessionPaams()
Returns the value of the session-params attribute.

Returns:
a String that provides transport-specific parameters for SRTP negotiation.

setTag

public void setTag(String tag)
Sets the value of the tag attribute: a decimal number used as an identifier for a particular crypto element.

Parameters:
tag - a String containing a decimal number used as an identifier for a particular crypto element.

getTag

public String getTag()
Returns the value of the tag attribute.

Returns:
a String containing a decimal number used as an identifier for a particular crypto element.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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