com.coinbase.cdp.auth
- A bearer token for the
Authorizationheader - An optional wallet auth token for the
X-Wallet-Authheader
CdpTokenResponse that is returned by CdpTokenGenerator.
Method Details
bearerToken
Authorization header.
This token is required for all CDP API requests and authenticates the client application.
Returns:
String - the bearer token (must not be null or blank)
walletAuthToken
X-Wallet-Auth header.
This token is required for write operations (POST, PUT, DELETE) on account endpoints. It includes a hash of the request body and additional request metadata for enhanced security.
Returns:
Optional<String> - an Optional containing the wallet auth token, or empty if not available