|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.transform.sdes.SDesControlImpl
public class SDesControlImpl
Default implementation of SDesControl that supports the crypto suites
of the original RFC4568 and the KDR parameter, but nothing else.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.neomedia.SDesControl |
|---|
SDES_CIPHER_SUITES |
| Constructor Summary | |
|---|---|
SDesControlImpl()
SDESControl |
|
| Method Summary | |
|---|---|
void |
cleanup()
Cleans up the current SRTP control and its engine. |
ch.imvs.sdes4j.srtp.SrtpCryptoAttribute |
getInAttribute()
Gets the crypto attribute of the incoming MediaStream. |
String[] |
getInitiatorCryptoAttributes()
Gets the encoded SDES crypto-attributes for all enabled ciphers when the control is used as the initiator. |
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. |
SrtpListener |
getSrtpListener()
Returns the SrtpListener which listens for security events. |
Iterable<String> |
getSupportedCryptoSuites()
Gets all supported cipher suites. |
TransformEngine |
getTransformEngine()
Returns the transform engine currently used by this stream. |
boolean |
initiatorSelectAttribute(Iterable<String> peerAttributes)
Select the local crypto attribute from the initial offering (@see SDesControl.getInitiatorCryptoAttributes()) based on the peer's first
matching cipher suite. |
boolean |
requiresSecureSignalingTransport()
Returns true, SDES always requires the secure transport of its keys. |
String |
responderSelectAttribute(Iterable<String> peerAttributes)
Chooses a supported crypto attribute from the peer's list of supplied attributes and creates the local crypto attribute. |
void |
setConnector(AbstractRTPConnector newValue)
Sets the RTPConnector which is to use or uses this SRTP engine. |
void |
setEnabledCiphers(Iterable<String> ciphers)
Set the enabled SDES ciphers. |
void |
setMasterSession(boolean masterSession)
Not used. |
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. |
void |
start(MediaType type)
Starts and enables zrtp in the stream holding this control. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SDesControlImpl()
| Method Detail |
|---|
public void setEnabledCiphers(Iterable<String> ciphers)
SDesControl
setEnabledCiphers in interface SDesControlciphers - The list of enabled ciphers.public Iterable<String> getSupportedCryptoSuites()
SDesControl
getSupportedCryptoSuites in interface SDesControlpublic void cleanup()
SrtpControl
cleanup in interface SrtpControlpublic void setSrtpListener(SrtpListener srtpListener)
SrtpControl
setSrtpListener in interface SrtpControlsrtpListener - the SrtpListener that will receive the
eventspublic SrtpListener getSrtpListener()
SrtpControl
getSrtpListener in interface SrtpControlpublic boolean getSecureCommunicationStatus()
SrtpControl
getSecureCommunicationStatus in interface SrtpControlpublic void setMasterSession(boolean masterSession)
setMasterSession in interface SrtpControlmasterSession - not used.public void start(MediaType type)
SrtpControl
start in interface SrtpControltype - the media type of the stream this control controls.public void setMultistream(SrtpControl master)
SrtpControl
setMultistream in interface SrtpControlmaster - The security control of the master stream.public TransformEngine getTransformEngine()
SrtpControl
getTransformEngine in interface SrtpControlpublic String[] getInitiatorCryptoAttributes()
SDesControl
getInitiatorCryptoAttributes in interface SDesControlpublic String responderSelectAttribute(Iterable<String> peerAttributes)
SDesControl
responderSelectAttribute in interface SDesControlpeerAttributes - The peer's crypto attribute offering.
public boolean initiatorSelectAttribute(Iterable<String> peerAttributes)
SDesControlSDesControl.getInitiatorCryptoAttributes()) based on the peer's first
matching cipher suite.
initiatorSelectAttribute in interface SDesControlpeerAttributes - The peer's crypto offers.
public ch.imvs.sdes4j.srtp.SrtpCryptoAttribute getInAttribute()
SDesControl
getInAttribute in interface SDesControlpublic ch.imvs.sdes4j.srtp.SrtpCryptoAttribute getOutAttribute()
SDesControl
getOutAttribute in interface SDesControlpublic void setConnector(AbstractRTPConnector newValue)
SrtpControl
setConnector in interface SrtpControlnewValue - the RTPConnector which is to use or uses this
SRTP enginepublic boolean requiresSecureSignalingTransport()
requiresSecureSignalingTransport in interface SrtpControl
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||