package at.gv.egovernment.moa.id.iaik.config;
import at.gv.egovernment.moa.id.config.ConfigurationException;
import at.gv.egovernment.moa.id.config.ConfigurationProvider;
import iaik.pki.PKIConfiguration;
import iaik.pki.pathvalidation.ValidationConfiguration;
import iaik.pki.revocation.RevocationConfiguration;
import iaik.pki.store.certstore.CertStoreConfiguration;
import iaik.pki.store.revocation.archive.ArchiveConfiguration;
/**
* Implementation of interface PKIConfiguration
needed to
* initialize an IAIK JSSE TrustManager
*
* @author Paul Ivancsics
* @version $Id$
*/
public class PKIConfigurationImpl implements PKIConfiguration {
/** The configuration for the CertStore */
private CertStoreConfiguration certStoreConfiguration;
/** The configuration for the RevocationChecks */
private RevocationConfiguration revocationConfiguration;
/** The configuration for the Validation */
private ValidationConfiguration validationConfiguration;
/**
* Constructor
* @param conf the Configuration for the PKIConfig
* @throws ConfigurationException for any config error
*/
public PKIConfigurationImpl(ConfigurationProvider conf) throws ConfigurationException {
certStoreConfiguration = new CertStoreConfigurationImpl(conf);
revocationConfiguration = new RevocationConfigurationImpl();
validationConfiguration = new ValidationConfigurationImpl(conf);
}
/**
* @see iaik.pki.PKIConfiguration#getCertStoreConfiguration()
*/
public CertStoreConfiguration getCertStoreConfiguration() {
return certStoreConfiguration;
}
/**
* @see iaik.pki.PKIConfiguration#getRevocationConfiguration()
*/
public RevocationConfiguration getRevocationConfiguration() {
return revocationConfiguration;
}
/**
* @see iaik.pki.PKIConfiguration#getArchiveConfiguration()
*/
public ArchiveConfiguration getArchiveConfiguration() {
return null;
}
/**
* @see iaik.pki.PKIConfiguration#getValidationConfiguration()
*/
public ValidationConfiguration getValidationConfiguration() {
return validationConfiguration;
}
}