Class SecretClientCache

  • public final class SecretClientCache
    extends Object
    Caches clients so that we don't make a fresh call to login on every secret request.
    • Method Detail

      • get

        public static get​(String credentialsId,
                                                                           String vaultUrl)
      • invalidateCache

        public static void invalidateCache()
        Used to notify when credentials change, e.g. service principal secret updated. We can't invalidate individual keys as when we update a credential we don't know what vault(s) it is used for.