Interface SDesControl

  • All Superinterfaces:
    SrtpControl
    All Known Implementing Classes:
    SDesControlImpl

    public interface SDesControl
    extends SrtpControl
    SDES based SRTP MediaStream encryption control.
    Author:
    Ingo Bauersachs
    • Field Detail

      • SDES_CIPHER_SUITES

        static final String SDES_CIPHER_SUITES
        Name of the config setting that supplies the default enabled cipher suites. Cipher suites are comma-separated.
        See Also:
        Constant Field Values
    • Method Detail

      • getInAttribute

        ch.imvs.sdes4j.srtp.SrtpCryptoAttribute getInAttribute()
        Gets the crypto attribute of the incoming MediaStream.
        Returns:
        the crypto attribute of the incoming MediaStream.
      • getInitiatorCryptoAttributes

        ch.imvs.sdes4j.srtp.SrtpCryptoAttribute[] getInitiatorCryptoAttributes()
        Returns the crypto attributes enabled on this computer.
        Returns:
        The crypto attributes enabled on this computer.
      • getOutAttribute

        ch.imvs.sdes4j.srtp.SrtpCryptoAttribute getOutAttribute()
        Gets the crypto attribute of the outgoing MediaStream.
        Returns:
        the crypto attribute of the outgoing MediaStream.
      • getSupportedCryptoSuites

        Iterable<String> getSupportedCryptoSuites()
        Gets all supported cipher suites.
        Returns:
        all supported cipher suites.
      • initiatorSelectAttribute

        ch.imvs.sdes4j.srtp.SrtpCryptoAttribute initiatorSelectAttribute​(Iterable<ch.imvs.sdes4j.srtp.SrtpCryptoAttribute> peerAttributes)
        Selects the local crypto attribute from the initial offering (getInitiatorCryptoAttributes()) based on the peer's first matching cipher suite.
        Parameters:
        peerAttributes - The peer's crypto offers.
        Returns:
        A SrtpCryptoAttribute when a matching cipher suite was found; null, otherwise.
      • responderSelectAttribute

        ch.imvs.sdes4j.srtp.SrtpCryptoAttribute responderSelectAttribute​(Iterable<ch.imvs.sdes4j.srtp.SrtpCryptoAttribute> peerAttributes)
        Chooses a supported crypto attribute from the peer's list of supplied attributes and creates the local crypto attribute. Used when the control is running in the role as responder.
        Parameters:
        peerAttributes - The peer's crypto attribute offering.
        Returns:
        The local crypto attribute for the answer of the offer or null if no matching cipher suite could be found.
      • setEnabledCiphers

        void setEnabledCiphers​(Iterable<String> ciphers)
        Sets the enabled SDES ciphers.
        Parameters:
        ciphers - The list of enabled ciphers.