public class ZrtpControlImpl extends AbstractSrtpControl<ZRTPTransformEngine> implements ZrtpControl
| Modifier and Type | Class and Description |
|---|---|
static class |
ZrtpControlImpl.ZRTPCustomInfoCodes
Additional info codes for and data to support ZRTP4J.
|
SrtpControl.TransformEnginetransformEngineRTP_SAVP, RTP_SAVPF| Constructor and Description |
|---|
ZrtpControlImpl()
Creates the control.
|
| Modifier and Type | Method and Description |
|---|---|
protected ZRTPTransformEngine |
createTransformEngine()
Initializes a new ZRTPTransformEngine instance to be associated
with and used by this ZrtpControlImpl instance.
|
void |
doCleanup()
Prepares this
SrtpControl for garbage collection. |
String |
getCipherString()
Gets the cipher information for the current media stream.
|
int |
getCurrentProtocolVersion()
Get negotiated ZRTP protocol version.
|
String |
getHelloHash(int index)
Return the zrtp hello hash String.
|
String[] |
getHelloHashSep(int index)
Get the ZRTP Hello Hash data - separate strings.
|
int |
getNumberSupportedVersions()
Get number of supported ZRTP protocol versions.
|
String |
getPeerHelloHash()
Get the peer's Hello Hash data.
|
byte[] |
getPeerZid()
Gets other party's ZID (ZRTP Identifier) data that was received during
ZRTP processing.
|
String |
getPeerZidString()
Gets other party's ZID (ZRTP Identifier) data that was received during
ZRTP processing as a String.
|
boolean |
getSecureCommunicationStatus()
Method for getting the default secure status value for communication
|
String |
getSecurityString()
Gets the SAS for the current media stream.
|
long |
getTimeoutValue()
Returns the timeout value that will we will wait
and fire timeout secure event if call is not secured.
|
boolean |
isSecurityVerified()
Gets the status of the SAS verification.
|
boolean |
requiresSecureSignalingTransport()
Returns
false, ZRTP exchanges its keys over the media path. |
void |
setConnector(AbstractRTPConnector connector)
Sets the RTPConnector which is to use or uses this ZRTP engine.
|
void |
setMasterSession(boolean masterSession)
When in multistream mode, enables the master session.
|
void |
setMultistream(SrtpControl master)
Start multi-stream ZRTP sessions.
|
void |
setSASVerification(boolean verified)
Sets the SAS verification
|
void |
start(org.jitsi.utils.MediaType mediaType)
Starts and enables zrtp in the stream holding this control.
|
cleanup, getSrtpControlType, getSrtpListener, getTransformEngine, registerUser, setSrtpListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanup, getSrtpControlType, getSrtpListener, getTransformEngine, registerUser, setSrtpListenerpublic void doCleanup()
SrtpControl for garbage collection.doCleanup in class AbstractSrtpControl<ZRTPTransformEngine>public String getCipherString()
ZrtpControlgetCipherString in interface ZrtpControlpublic int getCurrentProtocolVersion()
getCurrentProtocolVersion in interface ZrtpControlpublic String getHelloHash(int index)
getHelloHash in interface ZrtpControlindex - Hello hash of the Hello packet identfied by index. Index must
be 0 <= index < SUPPORTED_ZRTP_VERSIONS.public String[] getHelloHashSep(int index)
getHelloHashSep in interface ZrtpControlindex - Hello hash of the Hello packet identfied by index. Index must
be 0 <= index < SUPPORTED_ZRTP_VERSIONS.null
if ZRTP is not available.public int getNumberSupportedVersions()
getNumberSupportedVersions in interface ZrtpControlpublic String getPeerHelloHash()
getPeerHelloHash in interface ZrtpControlpublic byte[] getPeerZid()
ZrtpControlgetPeerZid in interface ZrtpControlpublic String getPeerZidString()
ZrtpControlgetPeerZidString in interface ZrtpControlpublic boolean getSecureCommunicationStatus()
getSecureCommunicationStatus in interface SrtpControlpublic String getSecurityString()
ZrtpControlgetSecurityString in interface ZrtpControlpublic long getTimeoutValue()
getTimeoutValue in interface ZrtpControlprotected ZRTPTransformEngine createTransformEngine()
createTransformEngine in class AbstractSrtpControl<ZRTPTransformEngine>public boolean isSecurityVerified()
ZrtpControlisSecurityVerified in interface ZrtpControlpublic boolean requiresSecureSignalingTransport()
false, ZRTP exchanges its keys over the media path.requiresSecureSignalingTransport in interface SrtpControlfalsepublic void setConnector(AbstractRTPConnector connector)
setConnector in interface SrtpControlconnector - the RTPConnector which is to use or uses this
ZRTP enginepublic void setMasterSession(boolean masterSession)
setMasterSession in interface SrtpControlsetMasterSession in class AbstractSrtpControl<ZRTPTransformEngine>masterSession - whether current control, controls the master sessionpublic void setMultistream(SrtpControl master)
setMultistream in interface SrtpControlsetMultistream in class AbstractSrtpControl<ZRTPTransformEngine>master - master SRTP datapublic void setSASVerification(boolean verified)
setSASVerification in interface ZrtpControlverified - the new SAS verification statuspublic void start(org.jitsi.utils.MediaType mediaType)
start in interface SrtpControlmediaType - the media type of the stream this control controls.Copyright © 2022 jitsi.org. All rights reserved.