Class SRTCPTransformer

  • All Implemented Interfaces:
    PacketTransformer

    public class SRTCPTransformer
    extends SinglePacketTransformer
    SRTCPTransformer implements PacketTransformer. It encapsulate the encryption / decryption logic for SRTCP packets
    Author:
    Bing SU (nova.su@gmail.com), Werner Dittmann <Werner.Dittmann@t-online.de>
    • Constructor Detail

      • SRTCPTransformer

        public SRTCPTransformer​(SRTPTransformer srtpTransformer)
        Constructs an SRTCPTransformer, sharing its SrtpContextFactory instances with a given SRTPTransformer.
        Parameters:
        srtpTransformer - the SRTPTransformer with which this SRTCPTransformer will share its SrtpContextFactory instances.
      • SRTCPTransformer

        public SRTCPTransformer​(org.jitsi.srtp.SrtpContextFactory factory)
        Constructs a SRTCPTransformer object.
        Parameters:
        factory - The associated context factory for both transform directions.
      • SRTCPTransformer

        public SRTCPTransformer​(org.jitsi.srtp.SrtpContextFactory forwardFactory,
                                org.jitsi.srtp.SrtpContextFactory reverseFactory)
        Constructs a SRTCPTransformer object.
        Parameters:
        forwardFactory - The associated context factory for forward transformations.
        reverseFactory - The associated context factory for reverse transformations.
    • Method Detail

      • updateFactory

        public void updateFactory​(org.jitsi.srtp.SrtpContextFactory factory,
                                  boolean forward)
        Sets a new key factory when key material has changed.
        Parameters:
        factory - The associated context factory for transformations.
        forward - true if the supplied factory is for forward transformations, false for the reverse transformation factory.
      • close

        public void close()
        Closes this SRTCPTransformer and the underlying transform engine. It closes all stored crypto contexts. It deletes key data and forces a cleanup of the crypto contexts.
        Specified by:
        close in interface PacketTransformer
        Overrides:
        close in class SinglePacketTransformer