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| Modifier and Type | Field and Description |
|---|---|
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 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.
|
String |
getCipherString()
Gets the cipher information for the current media stream.
|
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(String cipher)
Reports the security algorithm that the ZRTP protocol negotiated.
|
void |
securityNegotiationStarted()
Indicates that we started the process of securing the the connection.
|
void |
setSASVerified(boolean isVerified)
Sets current SAS verification status.
|
void |
setSessionType(org.jitsi.utils.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,
EnumSet<?> subCode)
Show some information to user.
|
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)
Negotiation has failed.
|
void |
zrtpNotSuppOther()
The other part does not support zrtp.
|
public static final String WARNING_NO_RS_MATCH
public static final String WARNING_NO_EXPECTED_RS_MATCH
public SecurityEventManager(ZrtpControlImpl zrtpControl)
zrtpControl - that this manager is to be associated with.public void setSessionType(org.jitsi.utils.MediaType sessionType)
sessionType - the MediaType of this sessionpublic void secureOn(String cipher)
secureOn in class gnu.java.zrtp.ZrtpUserCallbackcipher - the cipherpublic void showSAS(String sas, boolean isVerified)
showSAS in class gnu.java.zrtp.ZrtpUserCallbacksas - 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,
EnumSet<?> subCode)
showMessage in class gnu.java.zrtp.ZrtpUserCallbacksev - severity of the message.subCode - the message code.public void zrtpNegotiationFailed(gnu.java.zrtp.ZrtpCodes.MessageSeverity severity,
EnumSet<?> subCode)
zrtpNegotiationFailed in class gnu.java.zrtp.ZrtpUserCallbackseverity - of the message.subCode - the message code.public void secureOff()
secureOff in class gnu.java.zrtp.ZrtpUserCallbackpublic void zrtpNotSuppOther()
zrtpNotSuppOther in class gnu.java.zrtp.ZrtpUserCallbackpublic void confirmGoClear()
confirmGoClear in class gnu.java.zrtp.ZrtpUserCallbackpublic void setSrtpListener(SrtpListener securityListener)
securityListener - An object that receives the security events.public String getSecurityString()
public String getCipherString()
public boolean isSecurityVerified()
public void securityNegotiationStarted()
Copyright © 2021 jitsi.org. All rights reserved.