Package org.knowm.xchange.coingi.service
Class CoingiDefaultIdentityProvider
java.lang.Object
org.knowm.xchange.coingi.service.CoingiDefaultIdentityProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Binary to hexa convertor. -
Constructor Summary
ConstructorDescriptionCoingiDefaultIdentityProvider
(byte[] publicKey, byte[] privateKey) Initializes the provider using the given public and private API key. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the public key part.getSignature
(long nonce) Returns a valid signature for the given nonce.
-
Constructor Details
-
CoingiDefaultIdentityProvider
public CoingiDefaultIdentityProvider(byte[] publicKey, byte[] privateKey) Initializes the provider using the given public and private API key.- Parameters:
publicKey
- Public API key partprivateKey
- Private API key part
-
-
Method Details
-
getPublicKey
public byte[] getPublicKey()Returns the public key part.- Returns:
- Public key
-
getSignature
Returns a valid signature for the given nonce.- Parameters:
nonce
- Request nonce- Returns:
- Request signature
-