Search Results for

    Show / Hide Table of Contents

    Class TurnAuthResult

    The result of attempting to authenticate a TURN request.

    Inheritance
    System.Object
    TurnAuthResult
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class TurnAuthResult : object

    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
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0