Package org.jitsi.service.neomedia
Interface SrtpControl
-
- All Known Subinterfaces:
DtlsControl,SDesControl,ZrtpControl
- All Known Implementing Classes:
AbstractSrtpControl,DtlsControlImpl,NullSrtpControl,SDesControlImpl,ZrtpControlImpl
public interface SrtpControlControls SRTP encryption in the MediaStream.- Author:
- Damian Minkov
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSrtpControl.TransformEngineAdds a cleanup() method to org.jitsi.impl.neomedia.transform.TransformEngine which is to go in hand with the cleanup() method of SrtpControl.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanup(Object user)Cleans up this SrtpControl and its TransformEngine.booleangetSecureCommunicationStatus()Gets the default secure/insecure communication status for the supported call sessions.SrtpControlTypegetSrtpControlType()Gets the SrtpControlType of this instance.SrtpListenergetSrtpListener()Returns the SrtpListener which listens for security events.SrtpControl.TransformEnginegetTransformEngine()Returns the transform engine currently used by this stream.voidregisterUser(Object user)Registers user as an instance which is currently using this SrtpControl.booleanrequiresSecureSignalingTransport()Indicates if the key exchange method is dependent on secure transport of the signaling channel.voidsetConnector(AbstractRTPConnector connector)Sets the RTPConnector which is to use or uses this SRTP engine.voidsetMasterSession(boolean masterSession)When in multistream mode, enables the master session.voidsetMultistream(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.voidsetSrtpListener(SrtpListener srtpListener)Sets a SrtpListener that will listen for security events.voidstart(org.jitsi.utils.MediaType mediaType)Starts and enables zrtp in the stream holding this control.
-
-
-
Field Detail
-
RTP_SAVP
static final String RTP_SAVP
- See Also:
- Constant Field Values
-
RTP_SAVPF
static final String RTP_SAVPF
- See Also:
- Constant Field Values
-
-
Method Detail
-
cleanup
void cleanup(Object user)
Cleans up this SrtpControl and its TransformEngine.- Parameters:
user- the Object which requests the clean-up and is supposedly currently using thisSrtpControl(i.e. has already usedregisterUser(Object)).
-
getSecureCommunicationStatus
boolean getSecureCommunicationStatus()
Gets the default secure/insecure communication status for the supported call sessions.- Returns:
- default secure communication status for the supported call sessions.
-
getSrtpControlType
SrtpControlType getSrtpControlType()
Gets the SrtpControlType of this instance.- Returns:
- the SrtpControlType of this instance
-
getSrtpListener
SrtpListener getSrtpListener()
Returns the SrtpListener which listens for security events.- Returns:
- the SrtpListener which listens for security events
-
getTransformEngine
SrtpControl.TransformEngine getTransformEngine()
Returns the transform engine currently used by this stream.- Returns:
- the RTP stream transformation engine
-
requiresSecureSignalingTransport
boolean requiresSecureSignalingTransport()
Indicates if the key exchange method is dependent on secure transport of the signaling channel.- Returns:
- true when secure signaling is required to make the encryption secure; false, otherwise.
-
setConnector
void setConnector(AbstractRTPConnector connector)
Sets the RTPConnector which is to use or uses this SRTP engine.- Parameters:
connector- the RTPConnector which is to use or uses this SRTP engine
-
setMasterSession
void setMasterSession(boolean masterSession)
When in multistream mode, enables the master session.- Parameters:
masterSession- whether current control, controls the master session.
-
setMultistream
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.- Parameters:
master- The security control of the master stream.
-
setSrtpListener
void setSrtpListener(SrtpListener srtpListener)
Sets a SrtpListener that will listen for security events.- Parameters:
srtpListener- the SrtpListener that will receive the events
-
start
void start(org.jitsi.utils.MediaType mediaType)
Starts and enables zrtp in the stream holding this control.- Parameters:
mediaType- the media type of the stream this control controls.
-
registerUser
void registerUser(Object user)
Registers user as an instance which is currently using this SrtpControl.- Parameters:
user- theObjectwhich is currently using thisSrtpControl
-
-