Store (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.util

## Interface Store<T>

- Type Parameters:
    `T` - the object type stored.
  All Known Subinterfaces:
    PKIXCertStore<T>, PKIXCRLStore<T>
  All Known Implementing Classes:
    CollectionStore

      public interface Store<T>

  A generic interface describing a simple store of objects.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Collection<T>` | `getMatches(Selector<T> selector)` Return a possibly empty collection of objects that match the criteria implemented in the passed in Selector.

- - ### Method Detail

    - #### getMatches

          java.util.Collection<T> getMatches(Selector<T> selector)
                                             throws StoreException

      Return a possibly empty collection of objects that match the criteria implemented in the passed in Selector.
      Parameters:
        `selector` - the selector defining the match criteria.
      Returns:
        a collection of matching objects, empty if none available.
      Throws:
        `StoreException` - if there is a failure during matching.