Package com.bybit.api.client.security
Class HmacSHA256Signer
- java.lang.Object
-
- com.bybit.api.client.security.HmacSHA256Signer
-
public class HmacSHA256Signer extends Object
Utility class to sign messages using HMAC-SHA256.
-
-
Constructor Summary
Constructors Constructor Description HmacSHA256Signer()
-
-
-
Method Detail
-
sign
public static String sign(String apiKey, String apiSecret, String payload, long timestamp, long recvWindow)
Sign the given message using the given secret.- Parameters:
apiKey- api keyapiSecret- api secretpayload- query parameterstimestamp- current time in millisecondsrecvWindow- server receives window- Returns:
- a signed message
-
-