Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.neomedia.event
Interface SrtpListener

All Known Implementing Classes:
CallPeerGTalkImpl, CallPeerJabberImpl, CallPeerSipImpl, MediaAwareCallPeer

public interface SrtpListener

The ZrtpListener is meant to be used by the media stream creator, as the name indicates in order to be notified when a security event has occurred that concerns ZRTP.

Author:
Yana Stamcheva

Method Summary
 void securityMessageReceived(String message, String i18nMessage, int severity)
          Indicates that a security message has occurred associated with a failure/warning or information coming from the encryption protocol.
 void securityNegotiationStarted(int sessionType, SrtpControl sender)
          Indicates that we started the process of securing the the connection.
 void securityTimeout(int sessionType)
          Indicates that the other party has timed out replying to our offer to secure the connection.
 void securityTurnedOff(int sessionType)
          Indicates that the security has been turned off.
 void securityTurnedOn(int sessionType, String cipher, SrtpControl sender)
          Indicates that the security has been turned on.
 

Method Detail

securityTurnedOn

void securityTurnedOn(int sessionType,
                      String cipher,
                      SrtpControl sender)
Indicates that the security has been turned on. When we are in the case of using multistreams when the master stream ZRTP is initialized and established the param multiStreamData holds the data needed for the slave streams to establish their sessions. If this is a securityTurnedOn event on non master stream the multiStreamData is null.

Parameters:
sessionType - the type of the call session - audio or video.
cipher - the security cipher that encrypts the call
sender - the control that initiated the event.

securityTurnedOff

void securityTurnedOff(int sessionType)
Indicates that the security has been turned off.

Parameters:
sessionType - the type of the call session - audio or video.

securityMessageReceived

void securityMessageReceived(String message,
                             String i18nMessage,
                             int severity)
Indicates that a security message has occurred associated with a failure/warning or information coming from the encryption protocol.

Parameters:
message - the message.
i18nMessage - the internationalized message
severity - severity level

securityTimeout

void securityTimeout(int sessionType)
Indicates that the other party has timed out replying to our offer to secure the connection.

Parameters:
sessionType - the type of the call session - audio or video.

securityNegotiationStarted

void securityNegotiationStarted(int sessionType,
                                SrtpControl sender)
Indicates that we started the process of securing the the connection.

Parameters:
sessionType - the type of the call session - audio or video.
sender - the control that initiated the event.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.