Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class CallPeerSecurityOnEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.CallPeerSecurityStatusEvent
          extended by net.java.sip.communicator.service.protocol.event.CallPeerSecurityOnEvent
All Implemented Interfaces:
Serializable

public class CallPeerSecurityOnEvent
extends CallPeerSecurityStatusEvent

The CallPeerSecurityOnEvent is triggered whenever a communication with a given peer is going secure.

Author:
Werner Dittmann, Yana Stamcheva
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.java.sip.communicator.service.protocol.event.CallPeerSecurityStatusEvent
AUDIO_SESSION, VIDEO_SESSION
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CallPeerSecurityOnEvent(CallPeer callPeer, int sessionType, String cipher, SrtpControl srtpControl)
          The event constructor
 
Method Summary
 String getCipher()
          Returns the cipher used for the encryption.
 SrtpControl getSecurityController()
          Gets the security controller that caused this event.
 
Methods inherited from class net.java.sip.communicator.service.protocol.event.CallPeerSecurityStatusEvent
getSessionType
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallPeerSecurityOnEvent

public CallPeerSecurityOnEvent(CallPeer callPeer,
                               int sessionType,
                               String cipher,
                               SrtpControl srtpControl)
The event constructor

Parameters:
callPeer - the call peer associated with this event
sessionType - the type of the session, either CallPeerSecurityStatusEvent.AUDIO_SESSION or CallPeerSecurityStatusEvent.VIDEO_SESSION
cipher - the cipher used for the encryption
srtpControl - the security controller that caused this event
Method Detail

getCipher

public String getCipher()
Returns the cipher used for the encryption.

Returns:
the cipher used for the encryption.

getSecurityController

public SrtpControl getSecurityController()
Gets the security controller that caused this event.

Returns:
the security controller that caused this event.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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