Class CloudFunctionCredentialsCache

java.lang.Object
io.camunda.connector.http.base.cloudfunction.CloudFunctionCredentialsCache

public class CloudFunctionCredentialsCache extends Object
  • Field Details

  • Constructor Details

    • CloudFunctionCredentialsCache

      public CloudFunctionCredentialsCache()
  • Method Details

    • get

      public com.google.auth.oauth2.OAuth2Credentials get(Supplier<com.google.auth.oauth2.OAuth2Credentials> credentialsSupplier)
      Get credentials from cache or fetch new credentials if cache is empty or expired.
      Parameters:
      credentialsSupplier - Supplier to fetch new credentials
      Returns:
      Optional of credentials