org.hyperledger.fabric.gateway.spi

## 接口 WalletStore

-     public interface WalletStore

  Interface for store implementations that provide backing storage for identities in a `Wallet`.

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `InputStream` | `get(String label)` Get data from the store.
    `Set<String>` | `list()` List the labels for all stored data.
    `void` | `put(String label, InputStream data)` Put data into the store.
    `void` | `remove(String label)` Remove data from the store.

- - ### 方法详细资料

    - #### remove

          void remove(String label)
               throws IOException

      Remove data from the store. If the data does not exist, this does nothing.
      参数:
        `label` - Name used to key the data.
      抛出:
        `IOException` - if an error occurs accessing underlying persistent storage.

    - #### get

          InputStream get(String label)
                   throws IOException

      Get data from the store.
      参数:
        `label` - Name used to key the data.
      返回:
        The data, if it exists; otherwise null.
      抛出:
        `IOException` - if an error occurs accessing underlying persistent storage.

    - #### list

          Set<String> list()
                    throws IOException

      List the labels for all stored data.
      返回:
        Labels.
      抛出:
        `IOException` - if an error occurs accessing underlying persistent storage.

    - #### put

          void put(String label,
                   InputStream data)
            throws IOException

      Put data into the store. If data already exists for this label, it is overwritten.
      参数:
        `label` - Name used to key the data.
        `data` - Data to be stored.
      抛出:
        `IOException` - if an error occurs accessing underlying persistent storage.

Copyright © 2023. All rights reserved.