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,BitbayDigest,BitbayDigest,BitcoindeDigest,BitcoindeDigest,BitcointoyouDigest,BitfinexDigest,BitfinexHmacSignature,BitflyerDigest,BithumbDigest,BitmexDigest,BitsoDigest,BitstampDigest,BitstampDigestV2,BittrexContentDigest,BittrexDigest,Bl3pDigest,BleutradeDigest,BTCMarketsDigest,BTCMarketsDigestV3,BTCTurkDigest,BybitDigest,CCEXDigest,CexioDigest,CexIODigest,CoinbaseDigest,CoinbaseProDigest,CoinbaseV2Digest,CoindirectHawkDigest,CoinEggDigest,CoinexDigest,CoinexV2Digest,CoingiDigest,CoinmateDigest,DeribitAuth,ExmoDigest,FtxDigest,GateioHmacPostBodyDigest,GateioV4Digest,GeminiHmacPostBodyDigest,GlobitexDigest,HuobiDigest,IndependentReserveDigest,ItBitHmacPostBodyDigest,KrakenDigest,KrakenFuturesDigest,KucoinDigest,LatokenHmacDigest,LivecoinDigest,MercadoBitcoinDigest,MEXCDigest,OkexDigest,OkexDigestV3,PaymiumDigest,PoloniexDigest,VaultoroDigest,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
-