Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class CallPeerSecurityMessageEvent
extends EventObject

The CallPeerSecurityFailedEvent is triggered whenever a problem has occurred during call security process.

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

Field Summary
static int ERROR
          This is a ZRTP error message.
static int INFORMATION
          This is a information message.
static int SEVERE
          This is a severe error.
static int WARNING
          This is a warning message.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CallPeerSecurityMessageEvent(CallPeer callPeer, String eventMessage, String i18nMessage, int eventSeverity)
          Creates a CallPeerSecurityFailedEvent by specifying the call peer, event type and message associated with this event.
 
Method Summary
 int getEventSeverity()
          Returns the event severity.
 String getI18nMessage()
          Returns the internationalized message associated with this event.
 String getMessage()
          Returns the message associated with this event.
 
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
 

Field Detail

INFORMATION

public static final int INFORMATION
This is a information message. Security will be established.

See Also:
Constant Field Values

WARNING

public static final int WARNING
This is a warning message. Security will not be established.

See Also:
Constant Field Values

SEVERE

public static final int SEVERE
This is a severe error. Security will not be established.

See Also:
Constant Field Values

ERROR

public static final int ERROR
This is a ZRTP error message. Security will not be established.

See Also:
Constant Field Values
Constructor Detail

CallPeerSecurityMessageEvent

public CallPeerSecurityMessageEvent(CallPeer callPeer,
                                    String eventMessage,
                                    String i18nMessage,
                                    int eventSeverity)
Creates a CallPeerSecurityFailedEvent by specifying the call peer, event type and message associated with this event.

Parameters:
callPeer - the call peer implied in this event.
eventMessage - the message associated with this event.
i18nMessage - the internationalized message associated with this event that could be shown to the user.
eventSeverity - severity level.
Method Detail

getMessage

public String getMessage()
Returns the message associated with this event.

Returns:
the message associated with this event.

getI18nMessage

public String getI18nMessage()
Returns the internationalized message associated with this event.

Returns:
the internationalized message associated with this event.

getEventSeverity

public int getEventSeverity()
Returns the event severity.

Returns:
the eventSeverity

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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