Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.transform.srtp
Class SRTPTransformEngine

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.transform.srtp.SRTPTransformEngine
All Implemented Interfaces:
TransformEngine

public class SRTPTransformEngine
extends Object
implements TransformEngine

SRTPTransformEngine class implements TransformEngine interface. It stores important information / objects regarding SRTP processing. Through SRTPTransformEngine, we can get the needed PacketTransformer, which will be used by abstract TransformConnector classes.

Author:
Bing SU (nova.su@gmail.com)

Constructor Summary
SRTPTransformEngine(byte[] masterKey, byte[] masterSalt, SRTPPolicy srtpPolicy, SRTPPolicy srtcpPolicy)
          Construct a SRTPTransformEngine based on given master encryption key, master salt key and SRTP/SRTCP policy.
 
Method Summary
 void close()
          Close the transformer engine.
 SRTPCryptoContext getDefaultContext()
          Get the default SRTPCryptoContext
 SRTCPCryptoContext getDefaultContextControl()
          Get the default SRTPCryptoContext
 PacketTransformer getRTCPTransformer()
          Gets the PacketTransformer for RTCP packets.
 PacketTransformer getRTPTransformer()
          Gets the PacketTransformer for RTP packets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SRTPTransformEngine

public SRTPTransformEngine(byte[] masterKey,
                           byte[] masterSalt,
                           SRTPPolicy srtpPolicy,
                           SRTPPolicy srtcpPolicy)
Construct a SRTPTransformEngine based on given master encryption key, master salt key and SRTP/SRTCP policy.

Parameters:
masterKey - the master encryption key
masterSalt - the master salt key
srtpPolicy - SRTP policy
srtcpPolicy - SRTCP policy
Method Detail

close

public void close()
Close the transformer engine. The close functions closes all stored default crypto contexts. This deletes key data and forces a cleanup of the crypto contexts.


getRTCPTransformer

public PacketTransformer getRTCPTransformer()
Gets the PacketTransformer for RTCP packets.

Specified by:
getRTCPTransformer in interface TransformEngine
Returns:
the PacketTransformer for RTCP packets

getRTPTransformer

public PacketTransformer getRTPTransformer()
Description copied from interface: TransformEngine
Gets the PacketTransformer for RTP packets.

Specified by:
getRTPTransformer in interface TransformEngine
Returns:
the PacketTransformer for RTP packets

getDefaultContext

public SRTPCryptoContext getDefaultContext()
Get the default SRTPCryptoContext

Returns:
the default SRTPCryptoContext

getDefaultContextControl

public SRTCPCryptoContext getDefaultContextControl()
Get the default SRTPCryptoContext

Returns:
the default SRTPCryptoContext

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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