Class DatagramTransportImpl

  • All Implemented Interfaces:
    org.bouncycastle.tls.DatagramReceiver, org.bouncycastle.tls.DatagramSender, org.bouncycastle.tls.DatagramTransport, org.bouncycastle.tls.TlsCloseable

    public class DatagramTransportImpl
    extends Object
    implements org.bouncycastle.tls.DatagramTransport
    Implements DatagramTransport in order to integrate the Bouncy Castle Crypto APIs in libjitsi for the purposes of implementing DTLS-SRTP.
    Author:
    Lyubomir Marinov
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface org.bouncycastle.tls.TlsCloseable
      • getReceiveLimit

        public int getReceiveLimit()
        Specified by:
        getReceiveLimit in interface org.bouncycastle.tls.DatagramReceiver
      • getSendLimit

        public int getSendLimit()
        Specified by:
        getSendLimit in interface org.bouncycastle.tls.DatagramSender
      • receive

        public int receive​(byte[] buf,
                           int off,
                           int len,
                           int waitMillis)
                    throws IOException
        Specified by:
        receive in interface org.bouncycastle.tls.DatagramReceiver
        Throws:
        IOException
      • send

        public void send​(byte[] buf,
                         int off,
                         int len)
                  throws IOException
        Specified by:
        send in interface org.bouncycastle.tls.DatagramSender
        Throws:
        IOException