Class DtlsSrtpServer
Inheritance
System.Object
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer
DtlsSrtpServer
Inherited Members
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.GetDsaSignerCredentials()
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.GetDHParameters()
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.GetCredentials()
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.GetKeyExchange()
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.CreateDHKeyExchange(System.Int32)
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.CreateDheKeyExchange(System.Int32)
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.CreateECDHKeyExchange(System.Int32)
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.CreateECDheKeyExchange(System.Int32)
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.CreateRsaKeyExchange()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mCipherFactory
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mContext
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mClientVersion
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mOfferedCipherSuites
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mOfferedCompressionMethods
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mClientExtensions
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mEncryptThenMacOffered
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mMaxFragmentLengthOffered
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mTruncatedHMacOffered
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mSupportedSignatureAlgorithms
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mEccCipherSuitesOffered
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mNamedCurves
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mClientECPointFormats
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mServerECPointFormats
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mServerVersion
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mSelectedCipherSuite
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mSelectedCompressionMethod
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.mServerExtensions
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.CheckServerExtensions()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetCompressionMethods()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.SupportsClientEccCapabilities(System.Int32[], System.Byte[])
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.Init(Org.BouncyCastle.Crypto.Tls.TlsServerContext)
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.NotifyClientVersion(Org.BouncyCastle.Crypto.Tls.ProtocolVersion)
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.NotifyFallback(System.Boolean)
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.NotifyOfferedCipherSuites(System.Int32[])
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.NotifyOfferedCompressionMethods(System.Byte[])
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetServerVersion()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetSelectedCompressionMethod()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetServerSupplementalData()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetCertificateStatus()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.ProcessClientSupplementalData(System.Collections.IList)
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetCompression()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetCipher()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetNewSessionTicket()
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.AllowEncryptThenMac
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.AllowTruncatedHMac
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.Cancel()
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.NotifyCloseHandle(Org.BouncyCastle.Crypto.Tls.TlsCloseable)
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.GetHandshakeTimeoutMillis()
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.ShouldUseGmtUnixTime()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class DtlsSrtpServer : DefaultTlsServer, TlsServer, TlsPeer, IDtlsSrtpPeer
Constructors
| Improve this Doc View SourceDtlsSrtpServer()
Declaration
public DtlsSrtpServer()
DtlsSrtpServer(Certificate, AsymmetricKeyParameter)
Declaration
public DtlsSrtpServer(Certificate certificateChain, AsymmetricKeyParameter privateKey)
Parameters
Type | Name | Description |
---|---|---|
Org.BouncyCastle.Crypto.Tls.Certificate | certificateChain | |
Org.BouncyCastle.Crypto.AsymmetricKeyParameter | privateKey |
DtlsSrtpServer(X509Certificate2)
Declaration
public DtlsSrtpServer(X509Certificate2 certificate)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2 | certificate |
DtlsSrtpServer(String, String)
Declaration
public DtlsSrtpServer(string certificatePath, string keyPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | certificatePath | |
System.String | keyPath |
DtlsSrtpServer(String[], String)
Declaration
public DtlsSrtpServer(string[] certificatesPath, string keyPath)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | certificatesPath | |
System.String | keyPath |
Properties
| Improve this Doc View SourceCertificateChain
Declaration
public Certificate CertificateChain { get; }
Property Value
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.Certificate |
ClientCertificate
Declaration
public Certificate ClientCertificate { get; }
Property Value
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.Certificate |
Fingerprint
Declaration
public RTCDtlsFingerprint Fingerprint { get; }
Property Value
Type | Description |
---|---|
RTCDtlsFingerprint |
ForceUseExtendedMasterSecret
Declaration
public bool ForceUseExtendedMasterSecret { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaximumVersion
Declaration
protected override ProtocolVersion MaximumVersion { get; }
Property Value
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.ProtocolVersion |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.MaximumVersion
|
Improve this Doc
View Source
MinimumVersion
Declaration
protected override ProtocolVersion MinimumVersion { get; }
Property Value
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.ProtocolVersion |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.MinimumVersion
|
Improve this Doc
View Source
PrivateKey
Declaration
public AsymmetricKeyParameter PrivateKey { get; }
Property Value
Type | Description |
---|---|
Org.BouncyCastle.Crypto.AsymmetricKeyParameter |
Methods
| Improve this Doc View SourceGetCertificateRequest()
Declaration
public override CertificateRequest GetCertificateRequest()
Returns
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.CertificateRequest |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetCertificateRequest()
|
Improve this Doc
View Source
GetCipherSuites()
Declaration
protected override int[] GetCipherSuites()
Returns
Type | Description |
---|---|
System.Int32[] |
Overrides
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.GetCipherSuites()
|
Improve this Doc
View Source
GetECDsaSignerCredentials()
Declaration
protected override TlsSignerCredentials GetECDsaSignerCredentials()
Returns
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.TlsSignerCredentials |
Overrides
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.GetECDsaSignerCredentials()
|
Improve this Doc
View Source
GetKeyingMaterial(Int32)
Declaration
protected byte[] GetKeyingMaterial(int length)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | length |
Returns
Type | Description |
---|---|
System.Byte[] |
GetKeyingMaterial(String, Byte[], Int32)
Declaration
protected virtual byte[] GetKeyingMaterial(string asciiLabel, byte[] context_value, int length)
Parameters
Type | Name | Description |
---|---|---|
System.String | asciiLabel | |
System.Byte[] | context_value | |
System.Int32 | length |
Returns
Type | Description |
---|---|
System.Byte[] |
GetRemoteCertificate()
Declaration
public Certificate GetRemoteCertificate()
Returns
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.Certificate |
GetRsaEncryptionCredentials()
Declaration
protected override TlsEncryptionCredentials GetRsaEncryptionCredentials()
Returns
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.TlsEncryptionCredentials |
Overrides
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.GetRsaEncryptionCredentials()
|
Improve this Doc
View Source
GetRsaSignerCredentials()
Declaration
protected override TlsSignerCredentials GetRsaSignerCredentials()
Returns
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.TlsSignerCredentials |
Overrides
Org.BouncyCastle.Crypto.Tls.DefaultTlsServer.GetRsaSignerCredentials()
|
Improve this Doc
View Source
GetSelectedCipherSuite()
Declaration
public override int GetSelectedCipherSuite()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetSelectedCipherSuite()
|
Improve this Doc
View Source
GetServerExtensions()
Declaration
public override IDictionary GetServerExtensions()
Returns
Type | Description |
---|---|
System.Collections.IDictionary |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.GetServerExtensions()
|
Improve this Doc
View Source
GetSrtcpPolicy()
Declaration
public SrtpPolicy GetSrtcpPolicy()
Returns
Type | Description |
---|---|
SrtpPolicy |
GetSrtpMasterClientKey()
Declaration
public byte[] GetSrtpMasterClientKey()
Returns
Type | Description |
---|---|
System.Byte[] |
GetSrtpMasterClientSalt()
Declaration
public byte[] GetSrtpMasterClientSalt()
Returns
Type | Description |
---|---|
System.Byte[] |
GetSrtpMasterServerKey()
Declaration
public byte[] GetSrtpMasterServerKey()
Returns
Type | Description |
---|---|
System.Byte[] |
GetSrtpMasterServerSalt()
Declaration
public byte[] GetSrtpMasterServerSalt()
Returns
Type | Description |
---|---|
System.Byte[] |
GetSrtpPolicy()
Declaration
public SrtpPolicy GetSrtpPolicy()
Returns
Type | Description |
---|---|
SrtpPolicy |
IsClient()
Declaration
public bool IsClient()
Returns
Type | Description |
---|---|
System.Boolean |
NotifyAlertRaised(Byte, Byte, String, Exception)
Declaration
public override void NotifyAlertRaised(byte alertLevel, byte alertDescription, string message, Exception cause)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | alertLevel | |
System.Byte | alertDescription | |
System.String | message | |
System.Exception | cause |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.NotifyAlertRaised(System.Byte, System.Byte, System.String, System.Exception)
|
Improve this Doc
View Source
NotifyAlertReceived(Byte, Byte)
Declaration
public override void NotifyAlertReceived(byte alertLevel, byte alertDescription)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | alertLevel | |
System.Byte | alertDescription |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.NotifyAlertReceived(System.Byte, System.Byte)
|
Improve this Doc
View Source
NotifyClientCertificate(Certificate)
Declaration
public override void NotifyClientCertificate(Certificate clientCertificate)
Parameters
Type | Name | Description |
---|---|---|
Org.BouncyCastle.Crypto.Tls.Certificate | clientCertificate |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.NotifyClientCertificate(Org.BouncyCastle.Crypto.Tls.Certificate)
|
Improve this Doc
View Source
NotifyHandshakeComplete()
Declaration
public override void NotifyHandshakeComplete()
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.NotifyHandshakeComplete()
|
Improve this Doc
View Source
NotifySecureRenegotiation(Boolean)
This override prevents a TLS fault from being generated if a "Client Hello" is received that does not support TLS renegotiation (https://tools.ietf.org/html/rfc5746). This override is required to be able to complete a DTLS handshake with the Pion WebRTC library, see https://github.com/pion/dtls/issues/274.
Declaration
public override void NotifySecureRenegotiation(bool secureRenegotiation)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | secureRenegotiation |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.NotifySecureRenegotiation(System.Boolean)
|
Improve this Doc
View Source
PrepareSrtpSharedSecret()
Declaration
protected virtual void PrepareSrtpSharedSecret()
ProcessClientExtensions(IDictionary)
Declaration
public override void ProcessClientExtensions(IDictionary clientExtensions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | clientExtensions |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsServer.ProcessClientExtensions(System.Collections.IDictionary)
|
Improve this Doc
View Source
RequiresExtendedMasterSecret()
Declaration
public override bool RequiresExtendedMasterSecret()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.RequiresExtendedMasterSecret()
Events
| Improve this Doc View SourceOnAlert
Parameters:
- alert level,
- alert type,
- alert description.
Declaration
public event Action<AlertLevelsEnum, AlertTypesEnum, string> OnAlert
Event Type
Type | Description |
---|---|
System.Action<AlertLevelsEnum, AlertTypesEnum, System.String> |
Implements
Org.BouncyCastle.Crypto.Tls.TlsServer
Org.BouncyCastle.Crypto.Tls.TlsPeer