public class SRTPContextFactory
extends java.lang.Object
Constructor and Description |
---|
SRTPContextFactory(boolean sender,
byte[] masterKey,
byte[] masterSalt,
SRTPPolicy srtpPolicy,
SRTPPolicy srtcpPolicy)
Construct a SRTPTransformEngine based on given master encryption key,
master salt key and SRTP/SRTCP policy.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the transformer engine.
|
SRTPCryptoContext |
getDefaultContext()
Get the default SRTPCryptoContext
|
SRTCPCryptoContext |
getDefaultContextControl()
Get the default SRTPCryptoContext
|
public SRTPContextFactory(boolean sender, byte[] masterKey, byte[] masterSalt, SRTPPolicy srtpPolicy, SRTPPolicy srtcpPolicy)
sender
- true if the new instance is to be used by an SRTP
sender; false if the new instance is to be used by an SRTP
receivermasterKey
- the master encryption keymasterSalt
- the master salt keysrtpPolicy
- SRTP policysrtcpPolicy
- SRTCP policypublic void close()
public SRTPCryptoContext getDefaultContext()
public SRTCPCryptoContext getDefaultContextControl()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.