\Threema\MsgApiPublicKeyStore

Interface PublicKeyStore Store the fetched Public Keys

Summary

Methods
Properties
Constants
getPublicKey()
setPublicKey()
No public properties found
No constants found
findPublicKey()
savePublicKey()
No protected properties found
N/A
No private methods found
$cache
N/A

Properties

$cache

$cache : array

threemaId => publicKey cache

Type

array

Methods

getPublicKey()

getPublicKey(string  $threemaId) : string|null

return null if the public key not found in the store

Parameters

string $threemaId

Returns

string|null

setPublicKey()

setPublicKey(string  $threemaId, string  $publicKey) : boolean

set and save a public key

Parameters

string $threemaId
string $publicKey

Returns

boolean

findPublicKey()

findPublicKey(string  $threemaId) : string|null

return null if the public key not found in the store

Parameters

string $threemaId

Returns

string|null

savePublicKey()

savePublicKey(string  $threemaId, string  $publicKey) : boolean

save a public key

Parameters

string $threemaId
string $publicKey

Returns

boolean