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:
BiboxDigest
,BinanceHmacDigest
,BitbayDigest
,BitbayDigest
,BitcoindeDigest
,BitcoindeDigest
,BitcointoyouDigest
,BitfinexHmacPostBodyDigest
,BitfinexHmacSignature
,BitflyerDigest
,BithumbDigest
,BitmexDigest
,BitsoDigest
,BitstampDigest
,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
,GateioHmacPostBodyDigest
,GeminiHmacPostBodyDigest
,GlobitexDigest
,HuobiDigest
,IndependentReserveDigest
,ItBitHmacPostBodyDigest
,KrakenDigest
,KucoinDigest
,LakeBTCDigest
,LatokenHmacDigest
,LivecoinDigest
,MercadoBitcoinDigest
,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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static byte[]
decodeBase64(String secretKey)
protected Mac
getMac()
-
-
-
Field Detail
-
HMAC_SHA_512
public static final String HMAC_SHA_512
- See Also:
- Constant Field Values
-
HMAC_SHA_384
public static final String HMAC_SHA_384
- See Also:
- Constant Field Values
-
HMAC_SHA_256
public static final String HMAC_SHA_256
- See Also:
- Constant Field Values
-
HMAC_SHA_1
public static final String HMAC_SHA_1
- See Also:
- Constant Field Values
-
HMAC_MD5
public static final String HMAC_MD5
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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).
-
-