com.coinbase.cdp.auth
Field Details
DEFAULT_HOST
Constant Field Values
Constructor Details
CdpTokenRequest
[IllegalArgumentException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html "class or interface in java.lang") - if validation fails
Parameters:
requestMethod - String
requestHost - String
requestPath - String
includeWalletAuthToken - boolean
requestBody - Optional<Object>
Method Details
builder
Builder - a new builder instance
toString
[toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Record.html#toString\(\) "class or interface in java.lang") in class [Record](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Record.html "class or interface in java.lang")
Returns:
String - a string representation of this object
hashCode
[hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Record.html#hashCode\(\) "class or interface in java.lang") in class [Record](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Record.html "class or interface in java.lang")
Returns:
int - a hash code value for this object
equals
Objects::equals(Object,Object); primitive components are compared with ’==’.
Specified by:
[equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Record.html#equals\(java.lang.Object\) "class or interface in java.lang") in class [Record](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Record.html "class or interface in java.lang")
Parameters:
o (Object) - the object with which to compare
Returns:
boolean - true if this object is the same as the o argument; false otherwise.
requestMethod
requestMethod record component.
Returns:
String - the value of the requestMethod record component
requestHost
requestHost record component.
Returns:
String - the value of the requestHost record component
requestPath
requestPath record component.
Returns:
String - the value of the requestPath record component
includeWalletAuthToken
includeWalletAuthToken record component.
Returns:
boolean - the value of the includeWalletAuthToken record component
requestBody
requestBody record component.
Returns:
Optional<Object> - the value of the requestBody record component