src/net/java/sip/communicator/service/protocol/AbstractCallPeer.java
/**
     * Constructs a <tt>CallPeerSecurityStatusEvent</tt> using this call peer as
     * source, setting it to be of type <tt>eventType</tt> and the corresponding
     * <tt>oldValue</tt> and <tt>newValue</tt>.
     *
     * @param messageType the type of the message
     * @param i18nMessage message
     * @param severity severity level
     */
Constructs a CallPeerSecurityStatusEvent using this call peer as
source, setting it to be of type eventType and the corresponding
oldValue and newValue.

@param messageType the type of the message
@param i18nMessage message
@param severity severity level
Constructs a CallPeerSecurityStatusEvent using this call peer as source setting it to be of type eventType and the corresponding oldValue and newValue . @param messageType the type of the message @param i18nMessage message @param severity severity level
protected void fireCallPeerSecurityMessageEvent(
        String messageType,
        String i18nMessage,
        int severity)
    {
        CallPeerSecurityMessageEvent evt
            = new CallPeerSecurityMessageEvent(   this,
                                                        messageType,
                                                        i18nMessage,
                                                        severity);
        if (logger.isDebugEnabled())
            logger.debug("Dispatching a CallPeerSecurityFailedEvent event to "
                     + callPeerSecurityListeners.size()
                     +" listeners. event is: " + evt.toString());
        Iterator<CallPeerSecurityListener> listeners = null;
        synchronized (callPeerSecurityListeners)
        {
            listeners = new ArrayList<CallPeerSecurityListener>(
                                callPeerSecurityListeners).iterator();
        }
        while (listeners.hasNext())
        {
            CallPeerSecurityListener listener = listeners.next();
            listener.securityMessageRecieved(evt);
        }
    }
protected void fireCallPeerSecurityMessageEvent ( String messageType , String i18nMessage , int severity ) { CallPeerSecurityMessageEvent evt = new CallPeerSecurityMessageEvent ( this , messageType , i18nMessage , severity ) ; if ( logger . isDebugEnabled ( ) ) logger . debug ( "Dispatching a CallPeerSecurityFailedEvent event to " + callPeerSecurityListeners . size ( ) + " listeners. event is: " + evt . toString ( ) ) ; Iterator < CallPeerSecurityListener > listeners = null ; synchronized ( callPeerSecurityListeners ) { listeners = new ArrayList < CallPeerSecurityListener > ( callPeerSecurityListeners ) . iterator ( ) ; } while ( listeners . hasNext ( ) ) { CallPeerSecurityListener listener = listeners . next ( ) ; listener . securityMessageRecieved ( evt ) ; } }
Constructs a <tt>CallPeerSecurityStatusEvent</tt> using this call peer as
 source, setting it to be of type <tt>eventType</tt> and the corresponding
 <tt>oldValue</tt> and <tt>newValue</tt>.
Constructs a <tt > CallPeerSecurityStatusEvent< / tt > using this call peer as source setting it to be of type <tt > eventType< / tt > and the corresponding <tt > oldValue< / tt > and <tt > newValue< / tt > .