Class DtlsSrtpClient
Inheritance
System.Object
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient
Org.BouncyCastle.Crypto.Tls.DefaultTlsClient
DtlsSrtpClient
Inherited Members
Org.BouncyCastle.Crypto.Tls.DefaultTlsClient.mDHVerifier
Org.BouncyCastle.Crypto.Tls.DefaultTlsClient.GetCipherSuites()
Org.BouncyCastle.Crypto.Tls.DefaultTlsClient.GetKeyExchange()
Org.BouncyCastle.Crypto.Tls.DefaultTlsClient.CreateDHKeyExchange(System.Int32)
Org.BouncyCastle.Crypto.Tls.DefaultTlsClient.CreateDheKeyExchange(System.Int32)
Org.BouncyCastle.Crypto.Tls.DefaultTlsClient.CreateECDHKeyExchange(System.Int32)
Org.BouncyCastle.Crypto.Tls.DefaultTlsClient.CreateECDheKeyExchange(System.Int32)
Org.BouncyCastle.Crypto.Tls.DefaultTlsClient.CreateRsaKeyExchange()
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.mCipherFactory
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.mContext
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.mSupportedSignatureAlgorithms
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.mNamedCurves
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.mClientECPointFormats
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.mServerECPointFormats
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.mSelectedCipherSuite
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.mSelectedCompressionMethod
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.AllowUnexpectedServerExtension(System.Int32, System.Byte[])
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.CheckForUnexpectedServerExtension(System.Collections.IDictionary, System.Int32)
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.Init(Org.BouncyCastle.Crypto.Tls.TlsClientContext)
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.GetCompressionMethods()
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.NotifySessionID(System.Byte[])
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.NotifySelectedCipherSuite(System.Int32)
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.NotifySelectedCompressionMethod(System.Byte)
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.ProcessServerSupplementalData(System.Collections.IList)
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.GetClientSupplementalData()
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.GetCompression()
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.GetCipher()
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.NotifyNewSessionTicket(Org.BouncyCastle.Crypto.Tls.NewSessionTicket)
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.ClientHelloRecordLayerVersion
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.IsFallback
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()
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.NotifySecureRenegotiation(System.Boolean)
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 DtlsSrtpClient : DefaultTlsClient, TlsClient, TlsPeer, IDtlsSrtpPeer
Constructors
| Improve this Doc View SourceDtlsSrtpClient()
Declaration
public DtlsSrtpClient()
DtlsSrtpClient(Certificate, AsymmetricKeyParameter)
Declaration
public DtlsSrtpClient(Certificate certificateChain, AsymmetricKeyParameter privateKey)
Parameters
Type | Name | Description |
---|---|---|
Org.BouncyCastle.Crypto.Tls.Certificate | certificateChain | |
Org.BouncyCastle.Crypto.AsymmetricKeyParameter | privateKey |
DtlsSrtpClient(Certificate, AsymmetricKeyParameter, UseSrtpData)
Declaration
public DtlsSrtpClient(Certificate certificateChain, AsymmetricKeyParameter privateKey, UseSrtpData clientSrtpData)
Parameters
Type | Name | Description |
---|---|---|
Org.BouncyCastle.Crypto.Tls.Certificate | certificateChain | |
Org.BouncyCastle.Crypto.AsymmetricKeyParameter | privateKey | |
Org.BouncyCastle.Crypto.Tls.UseSrtpData | clientSrtpData |
DtlsSrtpClient(UseSrtpData)
Declaration
public DtlsSrtpClient(UseSrtpData clientSrtpData)
Parameters
Type | Name | Description |
---|---|---|
Org.BouncyCastle.Crypto.Tls.UseSrtpData | clientSrtpData |
DtlsSrtpClient(X509Certificate2)
Declaration
public DtlsSrtpClient(X509Certificate2 certificate)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2 | certificate |
DtlsSrtpClient(String, String)
Declaration
public DtlsSrtpClient(string certificatePath, string keyPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | certificatePath | |
System.String | keyPath |
DtlsSrtpClient(String[], String)
Declaration
public DtlsSrtpClient(string[] certificatesPath, string keyPath)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | certificatesPath | |
System.String | keyPath |
Fields
| Improve this Doc View SourcemSession
Declaration
protected TlsSession mSession
Field Value
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.TlsSession |
Properties
| Improve this Doc View SourceClientVersion
Declaration
public override ProtocolVersion ClientVersion { get; }
Property Value
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.ProtocolVersion |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.ClientVersion
|
Improve this Doc
View Source
Fingerprint
Declaration
public RTCDtlsFingerprint Fingerprint { get; }
Property Value
Type | Description |
---|---|
RTCDtlsFingerprint |
ForceUseExtendedMasterSecret
Declaration
public bool ForceUseExtendedMasterSecret { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MinimumVersion
Declaration
public override ProtocolVersion MinimumVersion { get; }
Property Value
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.ProtocolVersion |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.MinimumVersion
|
Improve this Doc
View Source
ServerCertificate
Declaration
public Certificate ServerCertificate { get; }
Property Value
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.Certificate |
Methods
| Improve this Doc View SourceGetAuthentication()
Declaration
public override TlsAuthentication GetAuthentication()
Returns
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.TlsAuthentication |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.GetAuthentication()
|
Improve this Doc
View Source
GetClientExtensions()
Declaration
public override IDictionary GetClientExtensions()
Returns
Type | Description |
---|---|
System.Collections.IDictionary |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.GetClientExtensions()
|
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 |
GetSessionToResume()
Declaration
public override TlsSession GetSessionToResume()
Returns
Type | Description |
---|---|
Org.BouncyCastle.Crypto.Tls.TlsSession |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.GetSessionToResume()
|
Improve this Doc
View Source
GetSrtcpPolicy()
Declaration
public virtual SrtpPolicy GetSrtcpPolicy()
Returns
Type | Description |
---|---|
SrtpPolicy |
GetSrtpMasterClientKey()
Declaration
public virtual byte[] GetSrtpMasterClientKey()
Returns
Type | Description |
---|---|
System.Byte[] |
GetSrtpMasterClientSalt()
Declaration
public virtual byte[] GetSrtpMasterClientSalt()
Returns
Type | Description |
---|---|
System.Byte[] |
GetSrtpMasterServerKey()
Declaration
public virtual byte[] GetSrtpMasterServerKey()
Returns
Type | Description |
---|---|
System.Byte[] |
GetSrtpMasterServerSalt()
Declaration
public virtual byte[] GetSrtpMasterServerSalt()
Returns
Type | Description |
---|---|
System.Byte[] |
GetSrtpPolicy()
Declaration
public virtual 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
NotifyHandshakeComplete()
Declaration
public override void NotifyHandshakeComplete()
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsPeer.NotifyHandshakeComplete()
|
Improve this Doc
View Source
NotifyServerVersion(ProtocolVersion)
Declaration
public override void NotifyServerVersion(ProtocolVersion serverVersion)
Parameters
Type | Name | Description |
---|---|---|
Org.BouncyCastle.Crypto.Tls.ProtocolVersion | serverVersion |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.NotifyServerVersion(Org.BouncyCastle.Crypto.Tls.ProtocolVersion)
|
Improve this Doc
View Source
PrepareSrtpSharedSecret()
Declaration
protected virtual void PrepareSrtpSharedSecret()
ProcessServerExtensions(IDictionary)
Declaration
public override void ProcessServerExtensions(IDictionary clientExtensions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | clientExtensions |
Overrides
Org.BouncyCastle.Crypto.Tls.AbstractTlsClient.ProcessServerExtensions(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.TlsClient
Org.BouncyCastle.Crypto.Tls.TlsPeer