Package io.zeebe.client
Interface CredentialsProvider
-
- All Known Implementing Classes:
NoopCredentialsProvider
,OAuthCredentialsProvider
public interface CredentialsProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
applyCredentials(io.grpc.Metadata headers)
Adds credentials to the headers.static OAuthCredentialsProviderBuilder
newCredentialsProviderBuilder()
boolean
shouldRetryRequest(Throwable throwable)
Returns true if the request should be retried; otherwise returns false.
-
-
-
Method Detail
-
applyCredentials
void applyCredentials(io.grpc.Metadata headers) throws IOException
Adds credentials to the headers. For an example of this, seeOAuthCredentialsProvider.applyCredentials(Metadata)
- Parameters:
headers
- gRPC headers to be modified- Throws:
IOException
-
shouldRetryRequest
boolean shouldRetryRequest(Throwable throwable)
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
static OAuthCredentialsProviderBuilder newCredentialsProviderBuilder()
- Returns:
- a builder to configure and create a new
OAuthCredentialsProvider
.
-
-