Class SRTPChannel

java.lang.Object
javaforce.voip.RTPChannel
javaforce.voip.SRTPChannel

public class SRTPChannel extends RTPChannel
  • Field Details

    • _roc

      protected long _roc
    • _s_l

      protected int _s_l
  • Constructor Details

    • SRTPChannel

      public SRTPChannel(RTP rtp, int ssrc, SDP.Stream stream)
  • Method Details

    • writeRTP

      public void writeRTP(byte[] data, int off, int len)
      Description copied from class: RTPChannel
      Writes a packet to the RTP port.
      Overrides:
      writeRTP in class RTPChannel
    • setLocalKeys

      public void setLocalKeys(byte[] key, byte[] salt)
      Sets keys found in SDP used on this side of SRTP (not used in DTLS mode)
    • setRemoteKeys

      public void setRemoteKeys(byte[] key, byte[] salt)
      Sets keys found in SDP used on other side of SRTP (not used in DTLS mode)
    • setDTLS

      public void setDTLS(boolean server, String local_iceufrag, String local_icepwd)
      Enables DTLS mode (otherwise you MUST call setServerKeys() AND setClientKeys() before calling start()).
    • start

      public boolean start()
      Overrides:
      start in class RTPChannel
    • processSTUN

      protected void processSTUN(byte[] data, int off, int len)
    • initDTLS

      public static boolean initDTLS(List<byte[]> certChain, byte[] privateKey, boolean pkRSA)
    • processDTLS

      protected void processDTLS(byte[] data, int off, int len)
    • processRTP

      protected void processRTP(byte[] data, int off, int len)
      Overrides:
      processRTP in class RTPChannel