Package io.camunda.client.impl.oauth
Class OAuthCredentialsCache
java.lang.Object
io.camunda.client.impl.oauth.OAuthCredentialsCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfMissingOrInvalid(String clientId, SupplierWithIO<CamundaClientCredentials> zeebeClientCredentialsConsumer) put(String clientId, CamundaClientCredentials credentials) intsize()<T> Optional<T> withCache(String clientId, FunctionWithIO<CamundaClientCredentials, T> function) void
-
Constructor Details
-
OAuthCredentialsCache
-
-
Method Details
-
readCache
- Throws:
IOException
-
writeCache
- Throws:
IOException
-
get
-
computeIfMissingOrInvalid
public CamundaClientCredentials computeIfMissingOrInvalid(String clientId, SupplierWithIO<CamundaClientCredentials> zeebeClientCredentialsConsumer) throws IOException - Throws:
IOException
-
withCache
public <T> Optional<T> withCache(String clientId, FunctionWithIO<CamundaClientCredentials, T> function) throws IOException- Throws:
IOException
-
put
-
size
public int size()
-