Perhaps it points toward adding an enhanced Properties class which contains additional features useful for configuration files, such as the missing ones you mentioned. Then everyone could benefit from it, instead of it being private to the PKCS11 code only.
Matthew. On Mon, Apr 22, 2013 at 05:01:29PM -0700, Valerie (Yu-Ching) Peng wrote: > > The concurrent config parsing impl in SunPKCS11 provider may seem > more complicated than necessary at the first sight. > 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. > > With the Properties class, the syntax can be too loosely defined, > i.e. each of the following three lines specifies the key |"Truth"| > and the associated element value |"Beauty"|: > > Truth = Beauty > Truth:Beauty > Truth :Beauty > > > 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. > > Thanks, > Valerie > > On 04/18/13 23:38, Matthew Hall wrote: > >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. >