package at.gv.egovernment.moa.spss.server.iaik.config;
import iaik.pki.store.certstore.CertStoreConfiguration;
import iaik.pki.store.certstore.CertStoreParameters;
import iaik.pki.store.certstore.directory.DirectoryCertStoreParameters;
import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider;
/**
* An implementation of the CertStoreConfiguration
interface based
* on MOA configuration data.
*
* @see iaik.pki.store.certstore.CertStoreConfiguration
* @author Patrick Peck
* @version $Id$
*/
public class CertStoreConfigurationImpl
extends AbstractObservableConfiguration
implements CertStoreConfiguration {
/** The configuration parameters of the CertStore
. */
private CertStoreParameters[] parameters;
/**
* Create a new CertStoreConfigurationImpl
.
*
* @param config The MOA configuration from which the configuration data is
* being read.
*/
public CertStoreConfigurationImpl(ConfigurationProvider config)
{
String certStoreRoot = config.getCertStoreLocation();
DirectoryCertStoreParameters dirParameters = new DirectoryCertStoreParametersImpl(
"MOA Directory CertStore",
certStoreRoot,
true,
false);
parameters = new CertStoreParameters[] { dirParameters };
}
/**
* @see iaik.pki.store.certstore.CertStoreConfiguration#getParameters()
*/
public CertStoreParameters[] getParameters() {
return parameters;
}
}