Preparing search index...
The search index is not available
@relaycorp/relaynet-core
@relaycorp/relaynet-core
MockPublicKeyStore
Class MockPublicKeyStore
Hierarchy (
view full
)
PublicKeyStore
MockPublicKeyStore
Index
Constructors
constructor
Properties
identity
Keys
session
Keys
Methods
clear
register
Session
Key
retrieve
Identity
Key
retrieve
Last
Session
Key
save
Identity
Key
save
Session
Key
Constructors
constructor
new
Mock
Public
Key
Store
(
failOnSave
?
,
fetchError
?
)
:
MockPublicKeyStore
Parameters
failOnSave
:
boolean
= false
Optional
fetchError
:
Error
Returns
MockPublicKeyStore
Properties
identity
Keys
identity
Keys
:
{
[
peerId
:
string
]
:
Buffer
;
}
= {}
Type declaration
[
peerId
:
string
]:
Buffer
session
Keys
session
Keys
:
{
[
peerId
:
string
]
:
SessionPublicKeyData
;
}
= {}
Type declaration
[
peerId
:
string
]:
SessionPublicKeyData
Methods
clear
clear
(
)
:
void
Returns
void
register
Session
Key
register
Session
Key
(
keyData
,
peerId
)
:
void
Parameters
keyData
:
SessionPublicKeyData
peerId
:
string
Returns
void
retrieve
Identity
Key
retrieve
Identity
Key
(
peerId
)
:
Promise
<
null
|
CryptoKey
>
Parameters
peerId
:
string
Returns
Promise
<
null
|
CryptoKey
>
retrieve
Last
Session
Key
retrieve
Last
Session
Key
(
peerId
)
:
Promise
<
null
|
SessionKey
>
Parameters
peerId
:
string
Returns
Promise
<
null
|
SessionKey
>
save
Identity
Key
save
Identity
Key
(
key
)
:
Promise
<
void
>
Parameters
key
:
CryptoKey
Returns
Promise
<
void
>
save
Session
Key
save
Session
Key
(
key
,
peerId
,
creationTime
)
:
Promise
<
void
>
Parameters
key
:
SessionKey
peerId
:
string
creationTime
:
Date
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
identity
Keys
session
Keys
clear
register
Session
Key
retrieve
Identity
Key
retrieve
Last
Session
Key
save
Identity
Key
save
Session
Key
@relaycorp/relaynet-core
BindingType
StreamingMode
CMSError
Cargo
CargoCollectionAuthorization
CargoCollectionRequest
CargoMessageSet
Certificate
CertificateError
CertificateRotation
CertificateStore
CertificationPath
Channel
Endpoint
EndpointManager
EnvelopedData
Gateway
GatewayChannel
GatewayManager
HandshakeChallenge
HandshakeResponse
Loading...
Generated using
TypeDoc