Package io.camunda.zeebe.client
Interface CredentialsProvider
- All Known Implementing Classes:
NoopCredentialsProvider,OAuthCredentialsProvider
public interface CredentialsProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyCredentials(io.grpc.Metadata headers) Adds credentials to the headers.booleanshouldRetryRequest(Throwable throwable) Returns true if the request should be retried; otherwise returns false.
-
Method Details
-
applyCredentials
Adds credentials to the headers. For an example of this, seeOAuthCredentialsProvider.applyCredentials(Metadata)- Parameters:
headers- gRPC headers to be modified- Throws:
IOException
-
shouldRetryRequest
Returns true if the request should be retried; otherwise returns false. For an example of this, seeOAuthCredentialsProvider.shouldRetryRequest(Throwable)- Parameters:
throwable- error that caused the request to fail
-
newCredentialsProviderBuilder
- Returns:
- a builder to configure and create a new
OAuthCredentialsProvider.
-