Interface WalletStore
-
public interface WalletStore
Interface for store implementations that provide backing storage for identities in aWallet
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
get(java.lang.String label)
Get data from the store.java.util.Set<java.lang.String>
list()
List the labels for all stored data.void
put(java.lang.String label, java.io.InputStream data)
Put data into the store.void
remove(java.lang.String label)
Remove data from the store.
-
-
-
Method Detail
-
remove
void remove(java.lang.String label) throws java.io.IOException
Remove data from the store. If the data does not exist, this does nothing.- Parameters:
label
- Name used to key the data.- Throws:
java.io.IOException
- if an error occurs accessing underlying persistent storage.
-
get
java.io.InputStream get(java.lang.String label) throws java.io.IOException
Get data from the store.- Parameters:
label
- Name used to key the data.- Returns:
- The data, if it exists; otherwise null.
- Throws:
java.io.IOException
- if an error occurs accessing underlying persistent storage.
-
list
java.util.Set<java.lang.String> list() throws java.io.IOException
List the labels for all stored data.- Returns:
- Labels.
- Throws:
java.io.IOException
- if an error occurs accessing underlying persistent storage.
-
put
void put(java.lang.String label, java.io.InputStream data) throws java.io.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:
java.io.IOException
- if an error occurs accessing underlying persistent storage.
-
-