Class SDesControlImpl

    • Constructor Detail

      • SDesControlImpl

        public SDesControlImpl()
        SDESControl
    • Method Detail

      • getInAttribute

        public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute getInAttribute()
        Description copied from interface: SDesControl
        Gets the crypto attribute of the incoming MediaStream.
        Specified by:
        getInAttribute in interface SDesControl
        Returns:
        the crypto attribute of the incoming MediaStream.
      • getInitiatorCryptoAttributes

        public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute[] getInitiatorCryptoAttributes()
        Returns the crypto attributes enabled on this computer.
        Specified by:
        getInitiatorCryptoAttributes in interface SDesControl
        Returns:
        The crypto attributes enabled on this computer.
      • getOutAttribute

        public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute getOutAttribute()
        Description copied from interface: SDesControl
        Gets the crypto attribute of the outgoing MediaStream.
        Specified by:
        getOutAttribute in interface SDesControl
        Returns:
        the crypto attribute of the outgoing MediaStream.
      • getSecureCommunicationStatus

        public boolean getSecureCommunicationStatus()
        Description copied from interface: SrtpControl
        Gets the default secure/insecure communication status for the supported call sessions.
        Specified by:
        getSecureCommunicationStatus in interface SrtpControl
        Returns:
        default secure communication status for the supported call sessions.
      • initiatorSelectAttribute

        public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute initiatorSelectAttribute​(Iterable<ch.imvs.sdes4j.srtp.SrtpCryptoAttribute> peerAttributes)
        Select the local crypto attribute from the initial offering (@see getInitiatorCryptoAttributes()) based on the peer's first matching cipher suite.
        Specified by:
        initiatorSelectAttribute in interface SDesControl
        Parameters:
        peerAttributes - The peer's crypto offers.
        Returns:
        A SrtpCryptoAttribute when a matching cipher suite was found; null, otherwise.
      • requiresSecureSignalingTransport

        public boolean requiresSecureSignalingTransport()
        Returns true, SDES always requires the secure transport of its keys.
        Specified by:
        requiresSecureSignalingTransport in interface SrtpControl
        Returns:
        true
      • responderSelectAttribute

        public 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.
        Specified by:
        responderSelectAttribute in interface SDesControl
        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.
      • setConnector

        public void setConnector​(AbstractRTPConnector connector)
        Sets the RTPConnector which is to use or uses this SRTP engine. The implementation of SDesControlImpl does nothing because SDesControlImpl does not utilize the RTPConnector.
        Specified by:
        setConnector in interface SrtpControl
        Parameters:
        connector - the RTPConnector which is to use or uses this SRTP engine
      • setEnabledCiphers

        public void setEnabledCiphers​(Iterable<String> ciphers)
        Description copied from interface: SDesControl
        Sets the enabled SDES ciphers.
        Specified by:
        setEnabledCiphers in interface SDesControl
        Parameters:
        ciphers - The list of enabled ciphers.
      • start

        public void start​(org.jitsi.utils.MediaType mediaType)
        Description copied from interface: SrtpControl
        Starts and enables zrtp in the stream holding this control.
        Specified by:
        start in interface SrtpControl
        Parameters:
        mediaType - the media type of the stream this control controls.