public abstract class AbstractSrtpControl<T extends SrtpControl.TransformEngine> extends Object implements SrtpControl
SrtpControl to
facilitate implementers.SrtpControl.TransformEngine| Modifier and Type | Field and Description |
|---|---|
protected T |
transformEngine |
RTP_SAVP, RTP_SAVPF| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSrtpControl(SrtpControlType srtpControlType)
Initializes a new AbstractSrtpControl instance with a specific
SrtpControlType.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(Object user)
Cleans up this SrtpControl and its TransformEngine.
|
protected abstract T |
createTransformEngine()
Initializes a new TransformEngine instance to be associated with
and used by this SrtpControl instance.
|
protected void |
doCleanup()
Prepares this
SrtpControl for garbage collection. |
SrtpControlType |
getSrtpControlType()
Gets the SrtpControlType of this instance.
|
SrtpListener |
getSrtpListener()
Returns the SrtpListener which listens for security events.
|
T |
getTransformEngine()
Returns the transform engine currently used by this stream.
|
void |
registerUser(Object user)
Registers user as an instance which is currently using this
SrtpControl.
|
void |
setMasterSession(boolean masterSession)
When in multistream mode, enables the master session.
|
void |
setMultistream(SrtpControl master)
Sets the multistream data, which means that the master stream has
successfully started and this will start all other streams in this
session.
|
void |
setSrtpListener(SrtpListener srtpListener)
Sets a SrtpListener that will listen for security events.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSecureCommunicationStatus, requiresSecureSignalingTransport, setConnector, startprotected T extends SrtpControl.TransformEngine transformEngine
protected AbstractSrtpControl(SrtpControlType srtpControlType)
srtpControlType - the SrtpControlType of the new instancepublic void cleanup(Object user)
doCleanup() if there are no more users (advertised via
registerUser(Object)) of this SrtpControl.cleanup in interface SrtpControluser - the Object which requests the clean-up and is supposedly
currently using this SrtpControl (i.e. has already used
SrtpControl.registerUser(Object)).protected abstract T createTransformEngine()
protected void doCleanup()
SrtpControl for garbage collection.public SrtpControlType getSrtpControlType()
getSrtpControlType in interface SrtpControlpublic SrtpListener getSrtpListener()
getSrtpListener in interface SrtpControlpublic T getTransformEngine()
getTransformEngine in interface SrtpControlpublic void setMasterSession(boolean masterSession)
setMasterSession in interface SrtpControlmasterSession - whether current control, controls the master session.public void setMultistream(SrtpControl master)
setMultistream in interface SrtpControlmaster - The security control of the master stream.public void setSrtpListener(SrtpListener srtpListener)
setSrtpListener in interface SrtpControlsrtpListener - the SrtpListener that will receive the
eventspublic void registerUser(Object user)
registerUser in interface SrtpControluser - the Object which is currently using this
SrtpControlCopyright © 2021 jitsi.org. All rights reserved.