com.coinbase.cdp.core
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
apiKeyId - String
apiKeySecret - String
walletSecret - Optional<String>
Method Details
intercept
[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