[Geoserver-users] how to rotate postgis DB authentication?

I have a need to do user/password rotation for my postgis store, Can anyone help me with the following:

  1. How do I programmatically create the reversible key stored in datastore.xml?
  2. When does the datastore file get read?
  3. Does it get cached and if so, how do I flush the cache?

Thanks.

–dan