Previous Topic: About the eiam.config File

Next Topic: Enable iTechnology SDK Logging

Example of a eiam.config File for Java Application

The following is an example of the eiam.config file:

<EiamConfiguration>
  <!-- Absolute file path for logger configuration, For Java use:-  file="eiam.log4j.config" -->
  <LoggerConfiguration file="eiam.log4j.config"/>
  <!-- Absolute folder path for SAF folder where audit files will be stored for processing-->
  <Saf directory="audit"/>
   <!-- Socket timeout in milli seconds. Default value is 2 mins -->
  <Network sockettimeout="120000"/>
<SDK type="Java">
	<iTechSDK>
		<FIPSMode>true</FIPSMode>
		<JCEProvider>JsafeJCE</JCEProvider>
		<Security>
			<digestAlgorithm>SHA1</digestAlgorithm>
		</Security>
		<Debug>
			<logLevel>trace</logLevel>
		</Debug>
	</iTechSDK>
  </SDK>
<!-- configuration to create SafeContext instance from SafeContextFactory -->
<SafeContext refid="RBC_Hospital" version="1.0">
	<!-- EEM server hostname -->
	<Backend>eiamServer</Backend>
	
	<!-- application instance to attach to (leave empty for global) -->
	<Application>RBC_Hospital</Application>
	
	<!-- locale -->
	<!-- java:format language-country-variant -->
	<Locale>en-us<\Locale>
	
	<!-- possible values for type are certificate/password/native -->
	<Authentication type="">
	<!-- input for certificate based authentication (PEM) keyPW is valid only for C++
		<Certificate type="pem"> 
			<CertURI>appcert.cer</CertURI>
			<KeyURI>appcert.key</KeyURI>
			<KeyPW></KeyPW/>
		</Certificate>
	</Authentication>
</SafeContext>
</EiamConfiguration>