Structuring configuration files

A convenient format for referring to an application's data in a configuration file is to use key-value pairs in sections.

[Section name]
key1 = value1
key2 = value2
key3 = value3

For example, the following sample configuration file contains two sections.

[SMimeSend]
attrToFind=userCertificate
searchbase=<searchbase X500>
searchexpr=<searchexpression e.g. CN>
to=<email of recipient>
from=<email address of sender>
host=<mailhost>
Profile=<epf filename of sender>
password=<password for login of sender>
firstName=Certificate
lastName=Request
 
[SMimeShow]
Profile=<epf filename of recipient>
protocol=<protocol of your mailserver>
host=<mailhost>
user=<recipient>
user_password=<password of recipient>
recipient_password=<password for login of recipient>
mbox=<name of mailbox>

See this file at:

etjava\examples\source\com\entrust\toolkit\examples\smime\smime_example.ini