<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    The concurrent config parsing impl in SunPKCS11 provider may seem
    more complicated than necessary at the first sight.<br>
    However, it has several advantages: this strict parsing can detect
    invalid settings right at parsing time and fail if any error is
    detected. Special handling for different keys, i.e. $XXX expansion
    for certain keys but not the rest, are possible.<br>
    <br>
    With the Properties class, the syntax can be too loosely defined,
    i.e. each of the following three lines specifies the key <code>"Truth"</code>
    and the associated element value <code>"Beauty"</code>:
    <p> </p>
    <pre> Truth = Beauty
  Truth:Beauty
 Truth                    :Beauty

</pre>
    For the more complicated configuration attribute such as
    "attributes" whose value spans over multiple lines, it may not be
    that conveniently handled by using Properties class.<br>
    <br>
    Thanks,<br>
    Valerie<br>
    <br>
    On 04/18/13 23:38, Matthew Hall wrote:
    <blockquote
      cite="mid:42a04f65-a769-481a-85b3-f9c6e37d49b2@email.android.com"
      type="cite">
      <pre wrap="">One question. Why does it parse these manually instead of using the Properties class to do it? That would work a lot better and reduce complexity and bugs.
</pre>
    </blockquote>
    <br>
  </body>
</html>