Interface IDtlsSrtpPeer
Definition of the interface that must be implement by the DtlsSrtpClient and the DtlsSrtpServer
Namespace: SipLib.Dtls
Assembly: SipLib.dll
Syntax
public interface IDtlsSrtpPeer
Properties
| Edit this page View SourceForceUseExtendedMasterSecret
Returns true if use of the extended master secret is to be forced
Declaration
bool ForceUseExtendedMasterSecret { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceGetRemoteCertificate()
Gets the remote endpoint's X.509 certificate
Declaration
Certificate GetRemoteCertificate()
Returns
Type | Description |
---|---|
Certificate |
GetSrtcpPolicy()
Gets the DTLS-SRTCP encryption and authentication policy information
Declaration
SrtpPolicy GetSrtcpPolicy()
Returns
Type | Description |
---|---|
SrtpPolicy |
GetSrtpMasterClientKey()
Gets the client's master key
Declaration
byte[] GetSrtpMasterClientKey()
Returns
Type | Description |
---|---|
byte[] |
GetSrtpMasterClientSalt()
Gets the client's master salt
Declaration
byte[] GetSrtpMasterClientSalt()
Returns
Type | Description |
---|---|
byte[] |
GetSrtpMasterServerKey()
Gets the server's master key
Declaration
byte[] GetSrtpMasterServerKey()
Returns
Type | Description |
---|---|
byte[] |
GetSrtpMasterServerSalt()
Gets the server's master salt
Declaration
byte[] GetSrtpMasterServerSalt()
Returns
Type | Description |
---|---|
byte[] |
GetSrtpPolicy()
Gets the DTLS-SRTP encryption and authentication policy information
Declaration
SrtpPolicy GetSrtpPolicy()
Returns
Type | Description |
---|---|
SrtpPolicy |
IsClient()
Returns true if the implementation is for a client or false if it is for a server
Declaration
bool IsClient()
Returns
Type | Description |
---|---|
bool |
Events
| Edit this page View SourceOnAlert
Event that will be fired when a protocol handshake alert is received or raised
Declaration
event Action<AlertLevelsEnum, AlertTypesEnum, string>? OnAlert
Event Type
Type | Description |
---|---|
Action<AlertLevelsEnum, AlertTypesEnum, string> |