Implements

  • CryptoKeyStorage

Constructors

Properties

service: SocketCrypto

Methods

  • Parameters

    • key: string

    Returns Promise<CryptoKey>

  • Parameters

    • key: string
    • algorithm: Algorithm
    • extractable: boolean
    • usages: KeyUsage[]

    Returns Promise<CryptoKey>

  • Returns true if item is in storage otherwise false

    Parameters

    • item: CryptoKey

      Crypto item

    Returns Promise<boolean>

  • Returns index of item in storage

    Parameters

    • item: CryptoKey

      Crypto item

    Returns Promise<null | string>

    Index of item in storage otherwise null

  • Removes crypto item from storage by index

    Parameters

    • key: string

    Returns Promise<void>

  • Add crypto item to storage and returns it's index

    Parameters

    • value: CryptoKey

    Returns Promise<string>