Class SecretClientCache

java.lang.Object
com.microsoft.jenkins.keyvault.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 Details

    • get

      public static com.azure.security.keyvault.secrets.SecretClient 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.