public class SecurityEventManager
extends gnu.java.zrtp.ZrtpUserCallback
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.ZrtpSecurityPanel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WARNING_NO_EXPECTED_RS_MATCH
A warning String that we display to the user.
|
static java.lang.String |
WARNING_NO_RS_MATCH
A warning String that we display to the user.
|
Constructor and Description |
---|
SecurityEventManager(ZrtpControlImpl zrtpControl)
The class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
confirmGoClear()
Inform the user that ZRTP received "go clear" message from its peer.
|
java.lang.String |
getCipherString()
Gets the cipher information for the current media stream.
|
java.lang.String |
getSecurityString()
Gets the SAS for the current media stream.
|
boolean |
isSecurityVerified()
Gets the status of the SAS verification.
|
void |
secureOff()
Inform user interface that security is not active any more.
|
void |
secureOn(java.lang.String cipher)
Reports the security algorithm that the ZRTP protocol negotiated.
|
void |
securityNegotiationStarted()
Indicates that we started the process of securing the the connection.
|
(package private) void |
setMasterEventManager(SecurityEventManager master)
Sets the event manager that belongs to the ZRTP master session.
|
void |
setSASVerified(boolean isVerified)
Sets current SAS verification status.
|
void |
setSessionType(MediaType sessionType)
Set the type of this session.
|
void |
setSrtpListener(SrtpListener securityListener)
Sets a new receiver of the security callback events.
|
void |
showMessage(gnu.java.zrtp.ZrtpCodes.MessageSeverity sev,
java.util.EnumSet<?> subCode)
Show some information to user.
|
void |
showSAS(java.lang.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,
java.util.EnumSet<?> subCode)
Negotiation has failed.
|
void |
zrtpNotSuppOther()
The other part does not support zrtp.
|
public static final java.lang.String WARNING_NO_RS_MATCH
public static final java.lang.String WARNING_NO_EXPECTED_RS_MATCH
public SecurityEventManager(ZrtpControlImpl zrtpControl)
zrtpControl
- that this manager is to be associated with.public void setSessionType(MediaType sessionType)
sessionType
- the MediaType of this sessionvoid setMasterEventManager(SecurityEventManager master)
master
- the event manager that belongs to the ZRTP master session.public void secureOn(java.lang.String cipher)
secureOn
in class gnu.java.zrtp.ZrtpUserCallback
cipher
- the cipherpublic void showSAS(java.lang.String sas, boolean isVerified)
showSAS
in class gnu.java.zrtp.ZrtpUserCallback
sas
- The string containing the SAS.isVerified
- is sas verified.public void setSASVerified(boolean isVerified)
isVerified
- flag indicating whether SAS has been verified.public void showMessage(gnu.java.zrtp.ZrtpCodes.MessageSeverity sev, java.util.EnumSet<?> subCode)
showMessage
in class gnu.java.zrtp.ZrtpUserCallback
sev
- severity of the message.subCode
- the message code.public void zrtpNegotiationFailed(gnu.java.zrtp.ZrtpCodes.MessageSeverity severity, java.util.EnumSet<?> subCode)
zrtpNegotiationFailed
in class gnu.java.zrtp.ZrtpUserCallback
severity
- of the message.subCode
- the message code.public void secureOff()
secureOff
in class gnu.java.zrtp.ZrtpUserCallback
public void zrtpNotSuppOther()
zrtpNotSuppOther
in class gnu.java.zrtp.ZrtpUserCallback
public void confirmGoClear()
confirmGoClear
in class gnu.java.zrtp.ZrtpUserCallback
public void setSrtpListener(SrtpListener securityListener)
securityListener
- An object that receives the security events.public java.lang.String getSecurityString()
public java.lang.String getCipherString()
public boolean isSecurityVerified()
public void securityNegotiationStarted()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.