Class DtlsTransformEngine
- java.lang.Object
-
- org.jitsi.impl.neomedia.transform.dtls.DtlsTransformEngine
-
- All Implemented Interfaces:
TransformEngine,SrtpControl.TransformEngine
public class DtlsTransformEngine extends Object implements SrtpControl.TransformEngine
ImplementsSrtpControl.TransformEngine(and, respectively,TransformEngine) for DTLS-SRTP.- Author:
- Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description DtlsTransformEngine(DtlsControlImpl dtlsControl)Initializes a new DtlsTransformEngine instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Cleans up this TransformEngine and prepares it for garbage collection.protected DtlsPacketTransformercreatePacketTransformer(int componentID)Initializes a new DtlsPacketTransformer instance which is to work on control/RTCP or data/RTP packets.PacketTransformergetRTCPTransformer()Gets the PacketTransformer for RTCP packets.PacketTransformergetRTPTransformer()Gets the PacketTransformer for RTP packets.
-
-
-
Constructor Detail
-
DtlsTransformEngine
public DtlsTransformEngine(DtlsControlImpl dtlsControl)
Initializes a new DtlsTransformEngine instance.
-
-
Method Detail
-
cleanup
public void cleanup()
Cleans up this TransformEngine and prepares it for garbage collection.- Specified by:
cleanupin interfaceSrtpControl.TransformEngine
-
createPacketTransformer
protected DtlsPacketTransformer createPacketTransformer(int componentID)
Initializes a new DtlsPacketTransformer instance which is to work on control/RTCP or data/RTP packets. The method is implemented as a factory.- Parameters:
componentID- the ID of the component for which the new instance is to work- Returns:
- a new DtlsPacketTransformer instance which is to work on control/RTCP or data/RTP packets (in accord with data)
-
getRTCPTransformer
public PacketTransformer getRTCPTransformer()
Gets the PacketTransformer for RTCP packets.- Specified by:
getRTCPTransformerin interfaceTransformEngine- Returns:
- the PacketTransformer for RTCP packets
-
getRTPTransformer
public PacketTransformer getRTPTransformer()
Gets the PacketTransformer for RTP packets.- Specified by:
getRTPTransformerin interfaceTransformEngine- Returns:
- the PacketTransformer for RTP packets
-
-