public class SDesControlImpl extends AbstractSrtpControl<SDesTransformEngine> implements SDesControl
SDesControl
that supports the crypto suites
of the original RFC4568 and the KDR parameter, but nothing else.SrtpControl.TransformEngine
transformEngine
SDES_CIPHER_SUITES
RTP_SAVP, RTP_SAVPF
Constructor and Description |
---|
SDesControlImpl()
SDESControl
|
Modifier and Type | Method and Description |
---|---|
protected SDesTransformEngine |
createTransformEngine()
Initializes a new SDesTransformEngine instance to be associated
with and used by this SDesControlImpl instance.
|
ch.imvs.sdes4j.srtp.SrtpCryptoAttribute |
getInAttribute()
Gets the crypto attribute of the incoming MediaStream.
|
ch.imvs.sdes4j.srtp.SrtpCryptoAttribute[] |
getInitiatorCryptoAttributes()
Returns the crypto attributes enabled on this computer.
|
ch.imvs.sdes4j.srtp.SrtpCryptoAttribute |
getOutAttribute()
Gets the crypto attribute of the outgoing MediaStream.
|
boolean |
getSecureCommunicationStatus()
Gets the default secure/insecure communication status for the supported
call sessions.
|
java.lang.Iterable<java.lang.String> |
getSupportedCryptoSuites()
Gets all supported cipher suites.
|
ch.imvs.sdes4j.srtp.SrtpCryptoAttribute |
initiatorSelectAttribute(java.lang.Iterable<ch.imvs.sdes4j.srtp.SrtpCryptoAttribute> peerAttributes)
Select the local crypto attribute from the initial offering (@see
getInitiatorCryptoAttributes() ) based on the peer's first
matching cipher suite. |
boolean |
requiresSecureSignalingTransport()
Returns true, SDES always requires the secure transport of its
keys.
|
ch.imvs.sdes4j.srtp.SrtpCryptoAttribute |
responderSelectAttribute(java.lang.Iterable<ch.imvs.sdes4j.srtp.SrtpCryptoAttribute> peerAttributes)
Chooses a supported crypto attribute from the peer's list of supplied
attributes and creates the local crypto attribute.
|
void |
setConnector(AbstractRTPConnector connector)
Sets the RTPConnector which is to use or uses this SRTP engine.
|
void |
setEnabledCiphers(java.lang.Iterable<java.lang.String> ciphers)
Sets the enabled SDES ciphers.
|
void |
start(MediaType mediaType)
Starts and enables zrtp in the stream holding this control.
|
cleanup, doCleanup, getSrtpControlType, getSrtpListener, getTransformEngine, registerUser, setMasterSession, setMultistream, setSrtpListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cleanup, getSrtpControlType, getSrtpListener, getTransformEngine, registerUser, setMasterSession, setMultistream, setSrtpListener
public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute getInAttribute()
SDesControl
getInAttribute
in interface SDesControl
public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute[] getInitiatorCryptoAttributes()
getInitiatorCryptoAttributes
in interface SDesControl
public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute getOutAttribute()
SDesControl
getOutAttribute
in interface SDesControl
public boolean getSecureCommunicationStatus()
SrtpControl
getSecureCommunicationStatus
in interface SrtpControl
public java.lang.Iterable<java.lang.String> getSupportedCryptoSuites()
SDesControl
getSupportedCryptoSuites
in interface SDesControl
protected SDesTransformEngine createTransformEngine()
createTransformEngine
in class AbstractSrtpControl<SDesTransformEngine>
AbstractSrtpControl.createTransformEngine()
public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute initiatorSelectAttribute(java.lang.Iterable<ch.imvs.sdes4j.srtp.SrtpCryptoAttribute> peerAttributes)
getInitiatorCryptoAttributes()
) based on the peer's first
matching cipher suite.initiatorSelectAttribute
in interface SDesControl
peerAttributes
- The peer's crypto offers.public boolean requiresSecureSignalingTransport()
requiresSecureSignalingTransport
in interface SrtpControl
public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute responderSelectAttribute(java.lang.Iterable<ch.imvs.sdes4j.srtp.SrtpCryptoAttribute> peerAttributes)
responderSelectAttribute
in interface SDesControl
peerAttributes
- The peer's crypto attribute offering.public void setConnector(AbstractRTPConnector connector)
setConnector
in interface SrtpControl
connector
- the RTPConnector which is to use or uses this
SRTP enginepublic void setEnabledCiphers(java.lang.Iterable<java.lang.String> ciphers)
SDesControl
setEnabledCiphers
in interface SDesControl
ciphers
- The list of enabled ciphers.public void start(MediaType mediaType)
SrtpControl
start
in interface SrtpControl
mediaType
- the media type of the stream this control controls.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.