FMLiveSwitchStunUtility Class Reference

STUN-wide methods. More...

Class Methods

(NSMutableData *) + createLongTermKeyWithUsername:realm:password:
 Creates a long term key from the given username, realm, and password by calculating the MD5 hash of their values concatenated as "username:realm:password". More...
 
(NSMutableData *) + createShortTermKeyWithPassword:
 Creates a short term key from the given password by encoding it as a UTF-8 byte array. More...
 

Detailed Description

STUN-wide methods.

Method Documentation

◆ createLongTermKeyWithUsername:realm:password:

+ (NSMutableData*) createLongTermKeyWithUsername: (NSString *)  username
realm: (NSString *)  realm
password: (NSString *)  password 

Creates a long term key from the given username, realm, and password by calculating the MD5 hash of their values concatenated as "username:realm:password".

Parameters
usernameThe username.
realmThe realm.
passwordThe password.

◆ createShortTermKeyWithPassword:

+ (NSMutableData*) createShortTermKeyWithPassword: (NSString *)  password

Creates a short term key from the given password by encoding it as a UTF-8 byte array.

Parameters
passwordThe password.