Thanks Danushka and Udara. I'll follow the existing approach where the path is prefixed by gov, config or local if it is in the registry and "file" if it is in the filesystem.
Thanks. /Gayashan On Wed, Dec 17, 2014 at 8:06 PM, Udara Liyanage <[email protected]> wrote: > > > > Touched, not typed. Erroneous words are a feature, not a typo. > On Dec 17, 2014 6:47 PM, "Gayashan Amarasinghe" <[email protected]> wrote: > > > > Hi all, > > > > I want to load a key store to read a key for a given an alias. This key > store can be either in the registry or in the file system. Given the path > to this keystore what is the best way to figure out from where to load it? > > > > I can see two options. > > Have the "file:" or "reg:" prefix in the key store path and filter based > on that > This will be more readable. > > Try to load the file > > from the file system > > first, if the file is not found in that location try to load it from the > registry (or vice versa) > > What would be the best approach to follow? > > > > Thanks. > > /Gayashan > > > > -- > > Gayashan Amarasinghe > > Software Engineer | Platform TG > > WSO2, Inc. | http://wso2.com > > lean. enterprise. middleware > > > > Mobile : +94718314517 > > Blog : gayashan-a.blogspot.com > > > > _______________________________________________ > > Dev mailing list > > [email protected] > > http://wso2.org/cgi-bin/mailman/listinfo/dev > > > -- *Gayashan Amarasinghe* Software Engineer | Platform TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +94718314517 Blog : gayashan-a.blogspot.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
