Class CloudFunctionCredentialsCache
java.lang.Object
io.camunda.connector.http.base.cloudfunction.CloudFunctionCredentialsCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX_ATTEMPTS
public static final int MAX_ATTEMPTS- See Also:
-
-
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
-