Class CryptoAttribute
This gives the maximum amount of media that can be encapsulated in each packet, expressed as time in milliseconds. The time SHALL be calculated as the sum of the time the media present in the packet represents. For frame-based codecs, the time SHOULD be an integer multiple of the frame size. This attribute is probably only meaningful for audio data, but may be used with other media types if it makes sense. It is a media-level attribute, and it is not dependent on charset. Note that this attribute was introduced after RFC 2327, and non-updated implementations will ignore this attribute.
Inherited Members
Namespace: FM.LiveSwitch.Sdp
Assembly: FM.LiveSwitch.dll
Syntax
public class CryptoAttribute : Attribute
Constructors
CryptoAttribute(Int32, String)
Initializes a new instance of the CryptoAttribute class.
Declaration
public CryptoAttribute(int tag, string cryptoSuite)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tag | The tag. |
System.String | cryptoSuite | The crypto suite. |
Properties
CryptoSuite
Gets or sets the crypto suite. See CryptoSuite for possible values.
Declaration
public string CryptoSuite { get; }
Property Value
Type | Description |
---|---|
System.String |
KeyParams
Gets or sets the key parameters.
Declaration
public Dictionary<string, string> KeyParams { get; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, System.String> |
SessionParams
Gets or sets the session parameters.
Declaration
public List<string> SessionParams { get; }
Property Value
Type | Description |
---|---|
List<System.String> |
Tag
Gets or sets the tag.
Declaration
public int Tag { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
FromAttributeValue(String)
Initializes a new instance of the CryptoAttribute class.
Declaration
public static CryptoAttribute FromAttributeValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The attribute value. |
Returns
Type | Description |
---|---|
CryptoAttribute |
GetAttributeValue()
Gets the internal value of the attribute.
Declaration
protected override string GetAttributeValue()
Returns
Type | Description |
---|---|
System.String |
Overrides
GetKey()
Gets the key from the "inline" key parameter.
Declaration
public DataBuffer GetKey()
Returns
Type | Description |
---|---|
DataBuffer |
GetSalt()
Gets the salt from the "inline" key parameter.
Declaration
public DataBuffer GetSalt()
Returns
Type | Description |
---|---|
DataBuffer |
SetKeySalt(Byte[], Byte[])
Sets the key and salt for the "inline" key parameter.
Declaration
public CryptoAttribute SetKeySalt(byte[] key, byte[] salt)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | key | The key. |
System.Byte[] | salt | The salt. |
Returns
Type | Description |
---|---|
CryptoAttribute |