Class: EncryptedGroupKey
Constructors
constructor
• new EncryptedGroupKey(groupKeyId
, encryptedGroupKeyHex
, serialized?
)
A pair (groupKeyId, encryptedGroupKey) where the encryptedGroupKey is an encrypted, hex-encoded version of the group key.
Parameters
Name | Type | Description |
---|---|---|
groupKeyId | string | |
encryptedGroupKeyHex | string | |
serialized? | null | string | Optional. If given, this exact string is returned from serialize(). |
Properties
encryptedGroupKeyHex
• encryptedGroupKeyHex: string
groupKeyId
• groupKeyId: string
serialized
• serialized: null
| string
Methods
serialize
▸ serialize(): string
Returns
string
toArray
▸ toArray(): EncryptedGroupKeySerialized
Returns
EncryptedGroupKeySerialized
deserialize
▸ Static
deserialize(json
): EncryptedGroupKey
Parameters
Name | Type |
---|---|
json | string |
Returns
fromArray
▸ Static
fromArray(arr
): EncryptedGroupKey
Parameters
Name | Type |
---|---|
arr | EncryptedGroupKeySerialized |