fm.liveswitch.TurnAuthResult Class Reference

The result of attempting to authenticate a TURN request. More...

Public Member Functions

byte[] getLongTermKeyBytes ()
 Gets 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). More...
 
String getPassword ()
 Gets the user's password in plain text. More...
 

Static Public Member Functions

static fm.liveswitch.TurnAuthResult fromLongTermKeyBytes (byte[] longTermKeyBytes)
 Initializes a new instance of the fm.liveswitch.TurnAuthResult class using a long-term key. More...
 
static fm.liveswitch.TurnAuthResult fromPassword (String password)
 Initializes a new instance of the fm.liveswitch.TurnAuthResult class using a plaintext password. More...
 

Detailed Description

The result of attempting to authenticate a TURN request.

Member Function Documentation

◆ fromLongTermKeyBytes()

static fm.liveswitch.TurnAuthResult fm.liveswitch.TurnAuthResult.fromLongTermKeyBytes ( byte[]  longTermKeyBytes)
static

Initializes a new instance of the fm.liveswitch.TurnAuthResult class using a long-term key.

Parameters
longTermKeyBytesThe long-term key bytes, calculated as the MD5 hash of the following UTF8-encoded input: "username:realm:password".

◆ fromPassword()

static fm.liveswitch.TurnAuthResult fm.liveswitch.TurnAuthResult.fromPassword ( String  password)
static

Initializes a new instance of the fm.liveswitch.TurnAuthResult class using a plaintext password.

Parameters
passwordThe user's password in plain text.

◆ getLongTermKeyBytes()

byte [] fm.liveswitch.TurnAuthResult.getLongTermKeyBytes ( )

Gets 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).

◆ getPassword()

String fm.liveswitch.TurnAuthResult.getPassword ( )

Gets the user's password in plain text.