com.coinbase.cdp.auth
Field Details
DEFAULT_EXPIRES_IN
Constant Field Values
Constructor Details
JwtOptions
[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:
keyId - String
keySecret - String
requestMethod - String
requestHost - String
requestPath - String
expiresIn - Optional<Long>
audience - Optional<List<String>>
Method Details
builder
keyId (String) - the API key ID
keySecret (String) - the API key secret (PEM EC key or base64 Ed25519 key)
Returns:
JwtOptions.Builder - a new builder instance
getEffectiveExpiresIn
long - the expiration time, or the default if not set
isRestRequest
boolean - true if request parameters are provided
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).
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.
keyId
keyId record component.
Returns:
String - the value of the keyId record component
keySecret
keySecret record component.
Returns:
String - the value of the keySecret record component
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
expiresIn
expiresIn record component.
Returns:
Optional<Long> - the value of the expiresIn record component
audience
audience record component.
Returns:
Optional<List<String>> - the value of the audience record component