SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.impl.media.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
 SRTPCryptoContext getDefaultContext()
          Get the default SRTPCryptoContext
 byte[] getMasterKey()
          Get the master encryption key
 byte[] getMasterSalt()
          Get the master salt key
 PacketTransformer getRTCPTransformer()
          Get the PacketTransformer for RTCP packets
 PacketTransformer getRTPTransformer()
          Get the PacketTransformer for RTP packets
 SRTPPolicy getSRTCPPolicy()
          Get the SRTCP policy
 SRTPPolicy getSRTPPolicy()
          Get the SRTP policy
 
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

getRTCPTransformer

public PacketTransformer getRTCPTransformer()
Description copied from interface: TransformEngine
Get 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
Get the PacketTransformer for RTP packets

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

getMasterKey

public byte[] getMasterKey()
Get the master encryption key

Returns:
the master encryption key

getMasterSalt

public byte[] getMasterSalt()
Get the master salt key

Returns:
the master salt key

getSRTCPPolicy

public SRTPPolicy getSRTCPPolicy()
Get the SRTCP policy

Returns:
the SRTCP policy

getSRTPPolicy

public SRTPPolicy getSRTPPolicy()
Get the SRTP policy

Returns:
the SRTP policy

getDefaultContext

public SRTPCryptoContext getDefaultContext()
Get the default SRTPCryptoContext

Returns:
the default SRTPCryptoContext

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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