Interface WalletStore


public interface WalletStore
Interface for store implementations that provide backing storage for identities in a Wallet.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String label)
    Get data from the store.
    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.
  • Method Details

    • remove

      void remove(String label) throws IOException
      Remove data from the store. If the data does not exist, this does nothing.
      Parameters:
      label - Name used to key the data.
      Throws:
      IOException - if an error occurs accessing underlying persistent storage.
    • get

      InputStream get(String label) throws IOException
      Get data from the store.
      Parameters:
      label - Name used to key the data.
      Returns:
      The data, if it exists; otherwise null.
      Throws:
      IOException - if an error occurs accessing underlying persistent storage.
    • list

      Set<String> list() throws IOException
      List the labels for all stored data.
      Returns:
      Labels.
      Throws:
      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.
      Parameters:
      label - Name used to key the data.
      data - Data to be stored.
      Throws:
      IOException - if an error occurs accessing underlying persistent storage.