Changes between #232 and #233
- Refactor the TokenGenerator constructor into calls to three methods: setPrivateKey(), setPublicKey(), and setConsumerKey().
Also modify getSession() such that, if token verification fails, we reset these three keys, which will update the singleton
fields with the keys from the newest on-disk certificate files (currently LetsEncrypt). By doing this, we refresh the
keys on failure, to be sure the problem isn't just a stale certificate issue. This should enable us to renew the CN
certificates without having to restart Metacat-based MNs every three-ish months. — cjones / detail