BrowserStringUtils class

Methods

getSortedObjectString(object)

Returns stringified jwk.

stringToArrayBuffer(string)

Converst string to ArrayBuffer

stringToUtf8Arr(string)

Converts string to Uint8Array

utf8ArrToString(Uint8Array)

Converts Uint8Array to a string

Method Details

getSortedObjectString(object)

Returns stringified jwk.

static function getSortedObjectString(obj: object): string

Parameters

obj

object

Returns

string

stringToArrayBuffer(string)

Converst string to ArrayBuffer

static function stringToArrayBuffer(dataString: string): ArrayBuffer

Parameters

dataString

string

Returns

ArrayBuffer

stringToUtf8Arr(string)

Converts string to Uint8Array

static function stringToUtf8Arr(sDOMStr: string): Uint8Array

Parameters

sDOMStr

string

Returns

Uint8Array

utf8ArrToString(Uint8Array)

Converts Uint8Array to a string

static function utf8ArrToString(aBytes: Uint8Array): string

Parameters

aBytes

Uint8Array

Returns

string