Class OAuthCredentialsCache

java.lang.Object
io.camunda.client.impl.oauth.OAuthCredentialsCache

@ThreadSafe public final class OAuthCredentialsCache extends Object
  • Constructor Details

    • OAuthCredentialsCache

      public OAuthCredentialsCache()
      Creates an in-memory-only credentials cache. Equivalent to OAuthCredentialsCache(File) with null — no filesystem persistence; tokens live only for the lifetime of this instance.
    • OAuthCredentialsCache

      public OAuthCredentialsCache(File cacheFile)
      Creates a credentials cache backed by cacheFile. If cacheFile is null, the cache operates in memory only: readCache() and writeCache() become no-ops and tokens are not persisted across restarts. If cacheFile is non-null, the file (and its parent directories, if missing) are created on first write and used to round-trip credentials between runs.
  • Method Details