Skip to main content
Package: com.coinbase.cdp.core
Adds CDP request-bound credentials to generated Java SDK requests. The Fern-generated client attaches EndpointMetadata to each request from the OpenAPI contract. This interceptor derives the bearer token for every request and adds wallet authentication only where that metadata requires X-Wallet-Auth. Consequently, a newly generated endpoint receives the appropriate request authentication without endpoint-specific handwritten SDK code.

Constructor Details

CdpAuthenticationInterceptor

Parameters: apiKeyId - String apiKeySecret - String walletSecret - Optional<String>

Method Details

intercept

Throws: [IOException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html "class or interface in java.io") Parameters: chain - okhttp3.Interceptor.Chain Returns: okhttp3.Response