Package org.bouncycastle.util
Class CollectionStore
java.lang.Object
org.bouncycastle.util.CollectionStore
- All Implemented Interfaces:
Store
- Direct Known Subclasses:
JcaCertStore
public class CollectionStore extends Object implements Store
A simple collection backed store.
-
Constructor Summary
Constructors Constructor Description CollectionStore(Collection collection)Basic constructor. -
Method Summary
Modifier and Type Method Description CollectiongetMatches(Selector selector)Return the matches in the collection for the passed in selector.
-
Constructor Details
-
CollectionStore
Basic constructor.- Parameters:
collection- - initial contents for the store, this is copied.
-
-
Method Details
-
getMatches
Return the matches in the collection for the passed in selector.- Specified by:
getMatchesin interfaceStore- Parameters:
selector- the selector to match against.- Returns:
- a possibly empty collection of matching objects.
-