fm.liveswitch.stun.Utility Class Referenceabstract

STUN-wide methods. More...

Static Public Member Functions

static byte[] createLongTermKey (String username, String realm, String 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...
 
static byte[] createShortTermKey (String password)
 Creates a short term key from the given password by encoding it as a UTF-8 byte array. More...
 

Detailed Description

STUN-wide methods.

Member Function Documentation

◆ createLongTermKey()

static byte [] fm.liveswitch.stun.Utility.createLongTermKey ( String  username,
String  realm,
String  password 
)
static

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.

◆ createShortTermKey()

static byte [] fm.liveswitch.stun.Utility.createShortTermKey ( String  password)
static

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

Parameters
passwordThe password.