• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.bouncycastle.jcajce;
2 
3 import java.security.cert.Certificate;
4 import java.util.Collection;
5 
6 import org.bouncycastle.util.Selector;
7 import org.bouncycastle.util.Store;
8 import org.bouncycastle.util.StoreException;
9 
10 /**
11  * Generic interface for a PKIX based certificate store.
12  *
13  * @param <T> the certificate type.
14  */
15 public interface PKIXCertStore<T extends Certificate>
16     extends Store<T>
17 {
18     /**
19      * Return the matches associated with the passed in selector.
20      *
21      * @param selector the selector defining the match criteria.
22      * @return a collection of matches with the selector, an empty selector if there are none.
23      * @throws StoreException in the event of an issue doing a match.
24      */
getMatches(Selector<T> selector)25     Collection<T> getMatches(Selector<T> selector)
26         throws StoreException;
27 }
28