|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.transform.srtp.SRTPTransformer
public class SRTPTransformer
SRTPTransformer implements PacketTransformer and provides implementations for RTP packet to SRTP packet transformation and SRTP packet to RTP packet transformation logic. It will first find the corresponding SRTPCryptoContext for each packet based on their SSRC and then invoke the context object to perform the transformation and reverse transformation operation.
| Constructor Summary | |
|---|---|
SRTPTransformer(SRTPTransformEngine engine)
Initializes a new SRTPTransformer instance. |
|
SRTPTransformer(SRTPTransformEngine forwardEngine,
SRTPTransformEngine reverseEngine)
Constructs a SRTPTransformer object. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this SRTPTransformer and the underlying transform engines.It closes all stored crypto contexts. |
RawPacket |
reverseTransform(RawPacket pkt)
Reverse-transforms a specific packet (i.e. |
RawPacket |
transform(RawPacket pkt)
Transforms a specific packet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SRTPTransformer(SRTPTransformEngine engine)
engine - the SRTPTransformEngine to be used by the new
instance for both directions
public SRTPTransformer(SRTPTransformEngine forwardEngine,
SRTPTransformEngine reverseEngine)
forwardEngine - The associated SRTPTransformEngine object for
forward transformations.reverseEngine - The associated SRTPTransformEngine object for
reverse transformations.| Method Detail |
|---|
public void close()
close in interface PacketTransformerpublic RawPacket reverseTransform(RawPacket pkt)
reverseTransform in interface PacketTransformerpkt - the transformed packet to be restored
public RawPacket transform(RawPacket pkt)
transform in interface PacketTransformerpkt - the packet to be transformed
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||