Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.
Lilia edited this page Jun 7, 2016 · 14 revisions

SignalProtocolAddress

new SignalProtocolAddress(number=, deviceId=)

SignalProtocolAddress.getName()

SignalProtocolAddress.getDeviceId()

SignalProtocolAddress.toString()

SignalProtocolAddress.equals(signalProtocolAddress=)

SessionBuilder

new SessionBuilder(store=, address=)

Constructs a new SessionBuilder.

Parameter Type Description
store SignalProtocolStore The storage interface.
address SignalProtocolAddress Remote address

SessionBuilder.processPreKey(preKeyBundle)

| Parameter | Type | Description |-----------------|-----------------| | preKeyBundle | Object | | @returns | Promise |


SessionBuilder.processV3(record, preKeyWhisperMessage)

| Parameter | Type | Description |-----------------|-----------------| | record | SessionRecord | | preKeyWhisperMessage | Object |

SessionCipher

new SessionCipher(store=, address=)

Constructs a new SessionCipher.

Parameter Type Description
store SignalProtocolStore The storage interface.
address SignalProtocolAddress Remote address

SessionCipher.encrypt(message, encoding=)

| Parameter | Type | Description |-----------------|-----------------| | message | !Array.<(!ByteBuffer | !ArrayBuffer | !Uint8Array | string)> | Buffers to concatenate | encoding | string | boolean | String encoding if buffers contains a string ("base64", "hex", "binary", defaults to "utf8")

SessionCipher.decryptWhisperMessage(message, encoding=)

| Parameter | Type | Description |-----------------|-----------------| | message | !Array.<(!ByteBuffer | !ArrayBuffer | !Uint8Array | string)> | Buffers to concatenate | encoding | string | boolean | String encoding if buffers contains a string ("base64", "hex", "binary", defaults to "utf8")


SessionCipher.decryptPreKeyWhisperMessage(message, encoding=)

| Parameter | Type | Description |-----------------|-----------------| | message | !Array.<(!ByteBuffer | !ArrayBuffer | !Uint8Array | string)> | Buffers to concatenate | encoding | string | boolean | String encoding if buffers contains a string ("base64", "hex", "binary", defaults to "utf8")


Clone this wiki locally