1 /*
2 * Copyright �, Aegeus Technology Limited. All rights reserved.
3 */
4 package jsdsi.certstore;
5
6 import java.security.InvalidAlgorithmParameterException;
7 import java.security.cert.CRLSelector;
8 import java.security.cert.CertSelector;
9 import java.security.cert.CertStoreException;
10 import java.security.cert.CertStoreParameters;
11 import java.security.cert.CertStoreSpi;
12 import java.util.Collection;
13
14 /***
15 * Abstract convenience class for JSDSI CertStores by providing typecasting functionality.
16 *
17 * @author Sean Radford
18 * @version $Revision: 1.1.4.2 $ $Date: 2004/12/12 17:01:39 $
19 */
20 public abstract class AbstractJsdsiCertStore extends CertStoreSpi {
21
22 /***
23 * @param params
24 * @throws java.security.InvalidAlgorithmParameterException
25 */
26 public AbstractJsdsiCertStore(CertStoreParameters params)
27 throws InvalidAlgorithmParameterException {
28 super(params);
29 }
30
31 /***
32 * @see java.security.cert.CertStoreSpi#engineGetCRLs(java.security.cert.CRLSelector)
33 */
34 public Collection engineGetCRLs(CRLSelector selector) throws CertStoreException {
35 throw new UnsupportedOperationException("Not currently supported");
36 }
37
38 /***
39 * @see java.security.cert.CertStoreSpi#engineGetCertificates(java.security.cert.CertSelector)
40 */
41 public Collection engineGetCertificates(CertSelector selector) throws CertStoreException {
42 if (!(selector instanceof jsdsi.CertSelector)) {
43 throw new CertStoreException("Only jsdsi.CertSelector supported.");
44 }
45 return getCertificates((jsdsi.CertSelector) selector);
46 }
47
48 /***
49 * To be implemented by sub-classes
50 *
51 * @param selector the CertSelector
52 * @return Collection of Certificates
53 * @throws CertStoreException
54 */
55 public abstract Collection getCertificates(jsdsi.CertSelector selector)
56 throws CertStoreException;
57
58 //public abstract Collection getCRLs(jsdsi.CRLSelector selector) throws CertStoreException;
59
60 }
This page was automatically generated by Maven