Package io.zeebe.client.impl.oauth
Class OAuthCredentialsCache
- java.lang.Object
-
- io.zeebe.client.impl.oauth.OAuthCredentialsCache
-
public final class OAuthCredentialsCache extends Object
-
-
Constructor Summary
Constructors Constructor Description OAuthCredentialsCache(File cacheFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ZeebeClientCredentials>
get(String endpoint)
OAuthCredentialsCache
put(String endpoint, ZeebeClientCredentials credentials)
OAuthCredentialsCache
readCache()
int
size()
void
writeCache()
-
-
-
Constructor Detail
-
OAuthCredentialsCache
public OAuthCredentialsCache(File cacheFile)
-
-
Method Detail
-
readCache
public OAuthCredentialsCache readCache() throws IOException
- Throws:
IOException
-
writeCache
public void writeCache() throws IOException
- Throws:
IOException
-
get
public Optional<ZeebeClientCredentials> get(String endpoint)
-
put
public OAuthCredentialsCache put(String endpoint, ZeebeClientCredentials credentials)
-
size
public int size()
-
-