FMLiveSwitchTurnAuthResult Class Reference

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

Instance Methods

(NSMutableData *) - longTermKeyBytes
 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...
 
(NSString *) - password
 Gets the user's password in plain text. More...
 

Class Methods

(FMLiveSwitchTurnAuthResult *) + fromLongTermKeyBytes:
 Initializes a new instance of the FMLiveSwitchTurnAuthResult class using a long-term key. More...
 
(FMLiveSwitchTurnAuthResult *) + fromPassword:
 Initializes a new instance of the FMLiveSwitchTurnAuthResult class using a plaintext password. More...
 

Detailed Description

The result of attempting to authenticate a TURN request.

Method Documentation

◆ fromLongTermKeyBytes:

+ (FMLiveSwitchTurnAuthResult*) fromLongTermKeyBytes: (NSMutableData *)  longTermKeyBytes

Initializes a new instance of the FMLiveSwitchTurnAuthResult 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:

+ (FMLiveSwitchTurnAuthResult*) fromPassword: (NSString *)  password

Initializes a new instance of the FMLiveSwitchTurnAuthResult class using a plaintext password.

Parameters
passwordThe user's password in plain text.

◆ longTermKeyBytes

- (NSMutableData*) longTermKeyBytes

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

◆ password

- (NSString*) password

Gets the user's password in plain text.