Package io.camunda.zeebe.client.impl
Class NoopCredentialsProvider
java.lang.Object
io.camunda.zeebe.client.impl.NoopCredentialsProvider
- All Implemented Interfaces:
CredentialsProvider
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
NoopCredentialsProvider
public NoopCredentialsProvider()
-
-
Method Details
-
applyCredentials
public void applyCredentials(io.grpc.Metadata headers) Description copied from interface:CredentialsProviderAdds credentials to the headers. For an example of this, seeOAuthCredentialsProvider.applyCredentials(Metadata)- Specified by:
applyCredentialsin interfaceCredentialsProvider- Parameters:
headers- gRPC headers to be modified
-
shouldRetryRequest
Description copied from interface:CredentialsProviderReturns true if the request should be retried; otherwise returns false. For an example of this, seeOAuthCredentialsProvider.shouldRetryRequest(Throwable)- Specified by:
shouldRetryRequestin interfaceCredentialsProvider- Parameters:
throwable- error that caused the request to fail
-