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
,BTCTradeDigest
,BTCTurkDigest
,CCEXDigest
,CexioDigest
,CexIODigest
,CoinbaseDigest
,CoinbaseProDigest
,CoinbaseV2Digest
,CoindirectHawkDigest
,CoinEggDigest
,CoinexDigest
,CoingiDigest
,CoinmateDigest
,CryptoFacilitiesDigest
,CryptopiaDigest
,DeribitAuth
,DragonDigest
,ExmoDigest
,FCoinDigest
,FtxDigest
,GateioHmacPostBodyDigest
,GeminiHmacPostBodyDigest
,GlobitexDigest
,HuobiDigest
,IndependentReserveDigest
,ItBitHmacPostBodyDigest
,KrakenDigest
,KucoinDigest
,LakeBTCDigest
,LatokenHmacDigest
,LivecoinDigest
,MercadoBitcoinDigest
,OkexDigest
,OkexDigestV3
,PaymiumDigest
,PoloniexDigest
,VaultoroDigest
,YoBitDigest
public abstract class BaseParamsDigest extends Object implements si.mazi.rescu.ParamsDigest
-
Field Summary
Fields Modifier and Type Field Description static String
HMAC_MD5
static String
HMAC_SHA_1
static String
HMAC_SHA_256
static String
HMAC_SHA_384
static String
HMAC_SHA_512
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseParamsDigest(byte[] secretKeyBase64, String hmacString)
Constructorprotected
BaseParamsDigest(String secretKeyBase64, String hmacString)
Constructor -
Method Summary
Modifier and Type Method Description protected static byte[]
decodeBase64(String secretKey)
Mac
getMac()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface si.mazi.rescu.ParamsDigest
digestParams
-
Field Details
-
HMAC_SHA_512
- See Also:
- Constant Field Values
-
HMAC_SHA_384
- See Also:
- Constant Field Values
-
HMAC_SHA_256
- See Also:
- Constant Field Values
-
HMAC_SHA_1
- See Also:
- Constant Field Values
-
HMAC_MD5
- See Also:
- Constant Field Values
-
-
Constructor Details
-
BaseParamsDigest
protected BaseParamsDigest(String secretKeyBase64, String hmacString) throws IllegalArgumentExceptionConstructor- 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 IllegalArgumentExceptionConstructor- 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
-