Options
All
  • Public
  • Public/Protected
  • All
Menu

Service for sharing data between two connected Meeco users. Connections can be setup via the ConnectionService

Hierarchy

  • Service<SharesApi>
    • ShareService

Index

Constructors

constructor

Properties

Protected environment

environment: Environment

Protected keystoreAPIFactory

keystoreAPIFactory: KeystoreAPIFactory

Protected logger

logger: IFullLogger

Protected vaultAPIFactory

vaultAPIFactory: VaultAPIFactory

Methods

acceptIncomingShare

  • acceptIncomingShare(credentials: IVaultToken, shareId: string): Promise<GetShareResponse>

deleteSharedItem

  • deleteSharedItem(credentials: IVaultToken, shareId: string): Promise<void>

getAPI

getSharedItem

listAll

listShares

setLogger

  • setLogger(logger: Logger): void

shareItem

updateSharedItem

Static shareEncryptedWithSharedKey

  • shareEncryptedWithSharedKey(share: Share): boolean
  • When a share is initially created it is encrypted with a generated symmetric key, encrypted with the recipient's public key. See getShareDEK for decrypting that key.

    Parameters

    • share: Share

    Returns boolean

    true if the share is encrypted with the shared key.

Generated using TypeDoc