Package io.camunda.zeebe.client.impl
Class NoopCredentialsProvider
- java.lang.Object
-
- io.camunda.zeebe.client.impl.NoopCredentialsProvider
-
- All Implemented Interfaces:
CredentialsProvider
public final class NoopCredentialsProvider extends Object implements CredentialsProvider
-
-
Constructor Summary
Constructors Constructor Description NoopCredentialsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyCredentials(io.grpc.Metadata headers)Adds credentials to the headers.booleanshouldRetryRequest(Throwable throwable)Returns true if the request should be retried; otherwise returns false.
-
-
-
Method Detail
-
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
public boolean shouldRetryRequest(Throwable throwable)
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
-
-