Interface WalletStore
-
public interface WalletStoreInterface 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.InputStreamget(java.lang.String label)Get data from the store.java.util.Set<java.lang.String>list()List the labels for all stored data.voidput(java.lang.String label, java.io.InputStream data)Put data into the store.voidremove(java.lang.String label)Remove data from the store.
-
-
-
Method Detail
-
remove
void remove(java.lang.String label) throws java.io.IOExceptionRemove 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.IOExceptionGet 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.IOExceptionList 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.IOExceptionPut 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.
-
-