Interface KeyStorage
- All Known Implementing Classes:
KeyStorage.NoopKeyStorage,VaultKeyStorage
public interface KeyStorage
Key chain storage interface.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classNo-op key chains storage implementation. -
Method Summary
Modifier and TypeMethodDescription@Nullable KeyChaingetKeyChain(String id) Returns key chain for provided identifier.Returns all key chains.voidRemoves key chain from storage associated with provided identifier.voidStores provided key chain with identifier.voidStores all provided key chains with associated identifiers.
-
Method Details
-
getKeyChain
Returns key chain for provided identifier.- Parameters:
id- Key chain identifier.
-
getKeyChains
Returns all key chains. -
store
Stores provided key chain with identifier.- Parameters:
id- Key chain identifier.keyChain- Key chain.
-
storeAll
Stores all provided key chains with associated identifiers.- Parameters:
keyChains- Key chains.
-
remove
Removes key chain from storage associated with provided identifier.- Parameters:
id- Key chain identifier.
-