Class TurnAuthResult
The result of attempting to authenticate a TURN request.
Inheritance
System.Object
TurnAuthResult
Inherited Members
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: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class TurnAuthResult
Properties
LongTermKeyBytes
Gets or sets the long-term key bytes, calculated as the MD5 hash of the following UTF8-encoded input: "username:realm:password" (for convenience, use STUN.CreateLongTermKey to calculate).
Declaration
public byte[] LongTermKeyBytes { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Password
Gets or sets the user's password in plain text.
Declaration
public string Password { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
FromLongTermKeyBytes(Byte[])
Initializes a new instance of the TurnAuthResult class using a long-term key.
Declaration
public static TurnAuthResult FromLongTermKeyBytes(byte[] longTermKeyBytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | longTermKeyBytes | The long-term key bytes, calculated as the MD5 hash of the following UTF8-encoded input: "username:realm:password". |
Returns
Type | Description |
---|---|
TurnAuthResult |
FromPassword(String)
Initializes a new instance of the TurnAuthResult class using a plaintext password.
Declaration
public static TurnAuthResult FromPassword(string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | password | The user's password in plain text. |
Returns
Type | Description |
---|---|
TurnAuthResult |