Package org.knowm.xchange.service
Class BaseParamsDigest
java.lang.Object
org.knowm.xchange.service.BaseParamsDigest
- All Implemented Interfaces:
si.mazi.rescu.ParamsDigest
- Direct Known Subclasses:
AscendexDigest,BiboxDigest,BinanceHmacDigest,BitcoindeDigest,BitfinexDigest,BitfinexHmacSignature,BitflyerDigest,BitgetDigest,BithumbDigest,BitsoDigest,BitstampDigest,BitstampDigestV2,BTCMarketsDigest,BTCMarketsDigestV3,BTCTurkDigest,BybitDigest,CexioDigest,CexIODigest,CoinbaseV2Digest,CoinbaseV2DigestCDP,CoinmateDigest,CoinsPHSignatureCreator,DaseDigest,DeribitDigest,ExmoDigest,GateioV4Digest,GeminiHmacPostBodyDigest,HuobiDigest,IndependentReserveDigest,KrakenDigest,KrakenDigest,KrakenFuturesDigest,KucoinDigest,LatokenHmacDigest,MercadoBitcoinDigest,OkexDigest,PaymiumDigest,YoBitDigest
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseParamsDigest(byte[] secretKeyBase64, String hmacString) ConstructorprotectedBaseParamsDigest(String secretKeyBase64, String hmacString) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]decodeBase64(String secretKey) getMac()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface si.mazi.rescu.ParamsDigest
digestParams
-
Field Details
-
HMAC_SHA_512
- See Also:
-
HMAC_SHA_384
- See Also:
-
HMAC_SHA_256
- See Also:
-
HMAC_SHA_1
- See Also:
-
HMAC_MD5
- See Also:
-
-
Constructor Details
-
BaseParamsDigest
protected BaseParamsDigest(String secretKeyBase64, String hmacString) throws IllegalArgumentException Constructor- Parameters:
secretKeyBase64- Base64 secret key- Throws:
IllegalArgumentException- if key is invalid (cannot be base-64-decoded or the decoded key is invalid).
-
BaseParamsDigest
protected BaseParamsDigest(byte[] secretKeyBase64, String hmacString) throws IllegalArgumentException Constructor- Parameters:
secretKeyBase64- Base64 secret key- Throws:
IllegalArgumentException- if key is invalid (cannot be base-64-decoded or the decoded key is invalid).
-
-
Method Details
-
decodeBase64
-
getMac
-