SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media.transform.zrtp
Class SecurityEventManager

java.lang.Object
  extended by gnu.java.zrtp.ZrtpUserCallback
      extended by net.java.sip.communicator.impl.media.transform.zrtp.SecurityEventManager

public class SecurityEventManager
extends gnu.java.zrtp.ZrtpUserCallback

The user callback class for ZRTP4J. This class constructs and sends events to the ZRTP GUI implementation. The showMessage() function implements a specific check to start associated ZRTP multi-stream sessions. Coordinate this callback class with the associated GUI implementation class net.java.sip.communicator.impl.gui.main.call.ZrtpPanel

Author:
Emanuel Onica, Werner Dittmann, Yana Stamcheva
See Also:
SecurityPanel

Field Summary
static String WARNING_NO_EXPECTED_RS_MATCH
          A warning String that we display to the user.
static String WARNING_NO_RS_MATCH
          A warning String that we display to the user.
 
Constructor Summary
SecurityEventManager(CallSession callSession)
          The class constructor.
 
Method Summary
 void confirmGoClear()
           
 void secureOff()
           
 void secureOn(String cipher)
          Reports the security algorithm that the ZRTP protocol negotiated.
 void setDHSession(boolean isDHSession)
          Set the DH session flag.
 void setSessionType(String type)
          Set the type of this session.
 void showMessage(gnu.java.zrtp.ZrtpCodes.MessageSeverity sev, EnumSet<?> subCode)
           
 void showSAS(String sas, boolean isVerified)
          ZRTP computes the SAS string after nearly all the negotiation and computations are done internally.
 void zrtpNegotiationFailed(gnu.java.zrtp.ZrtpCodes.MessageSeverity severity, EnumSet<?> subCode)
           
 void zrtpNotSuppOther()
           
 
Methods inherited from class gnu.java.zrtp.ZrtpUserCallback
checkSASSignature, signSAS, zrtpAskEnrollment, zrtpInformEnrollment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WARNING_NO_RS_MATCH

public static final String WARNING_NO_RS_MATCH
A warning String that we display to the user.


WARNING_NO_EXPECTED_RS_MATCH

public static final String WARNING_NO_EXPECTED_RS_MATCH
A warning String that we display to the user.

Constructor Detail

SecurityEventManager

public SecurityEventManager(CallSession callSession)
The class constructor.

Parameters:
callSession - the call session that this manager is to be associated with.
Method Detail

setSessionType

public void setSessionType(String type)
Set the type of this session.

Parameters:
type - the session type. The session type could be either CallSessionImpl.AUDIO_SESSION or CallSessionImpl.VIDEO_SESSION.

setDHSession

public void setDHSession(boolean isDHSession)
Set the DH session flag.

Parameters:
isDHSession - the DH session flag.

secureOn

public void secureOn(String cipher)
Reports the security algorithm that the ZRTP protocol negotiated.

Overrides:
secureOn in class gnu.java.zrtp.ZrtpUserCallback
See Also:
ZrtpUserCallback.secureOn(java.lang.String)

showSAS

public void showSAS(String sas,
                    boolean isVerified)
ZRTP computes the SAS string after nearly all the negotiation and computations are done internally.

Overrides:
showSAS in class gnu.java.zrtp.ZrtpUserCallback
See Also:
ZrtpUserCallback.showSAS(java.lang.String, boolean)

showMessage

public void showMessage(gnu.java.zrtp.ZrtpCodes.MessageSeverity sev,
                        EnumSet<?> subCode)
Overrides:
showMessage in class gnu.java.zrtp.ZrtpUserCallback
See Also:
ZrtpUserCallback.showMessage( gnu.java.zrtp.ZrtpCodes.MessageSeverity, java.util.EnumSet)

zrtpNegotiationFailed

public void zrtpNegotiationFailed(gnu.java.zrtp.ZrtpCodes.MessageSeverity severity,
                                  EnumSet<?> subCode)
Overrides:
zrtpNegotiationFailed in class gnu.java.zrtp.ZrtpUserCallback
See Also:
ZrtpUserCallback.zrtpNegotiationFailed( gnu.java.zrtp.ZrtpCodes.MessageSeverity, java.util.EnumSet)

secureOff

public void secureOff()
Overrides:
secureOff in class gnu.java.zrtp.ZrtpUserCallback
See Also:
ZrtpUserCallback.secureOff()

zrtpNotSuppOther

public void zrtpNotSuppOther()
Overrides:
zrtpNotSuppOther in class gnu.java.zrtp.ZrtpUserCallback
See Also:
ZrtpUserCallback.zrtpNotSuppOther()

confirmGoClear

public void confirmGoClear()
Overrides:
confirmGoClear in class gnu.java.zrtp.ZrtpUserCallback
See Also:
ZrtpUserCallback.confirmGoClear()

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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