@ThreadSafe
public class BsaCredentialextends Object
A credential for accessing the BSA API.
Fetches on-demand an auth token from BSA's auth http endpoint and caches it for repeated use
until the token expires (expiry set by BSA and recorded in the configuration file). An expired
token is refreshed only when requested. Token refreshing is blocking but thread-safe.
The token-fetching request authenticates itself with an API key, which is stored in the Secret
Manager.