package at.gv.egovernment.moa.id.iaik.config; import iaik.logging.LogConfigurationException; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Properties; /** * Implementation of interface TrustManager * @author Paul Ivancsics * @version $Id$ */ public class LoggerConfigImpl implements iaik.logging.LoggerConfig { /** logging properties **/ private Properties loggingProperties; /** * Constructor */ public LoggerConfigImpl(String propertyFileURL) throws IOException { InputStream in = new URL(propertyFileURL).openStream(); loggingProperties = new Properties(); loggingProperties.load(in); in.close(); } /** * @see iaik.logging.LoggerConfig#getFactory() */ public String getFactory() { return "iaik.logging.impl.Log4jFactory"; } /** * @see iaik.logging.LoggerConfig#getProperties() */ public Properties getProperties() throws LogConfigurationException { return loggingProperties; } /** * @see iaik.logging.LoggerConfig#getNodeId() */ public String getNodeId() { return "iaik"; } }