Class CoingiDefaultIdentityProvider

java.lang.Object
org.knowm.xchange.coingi.service.CoingiDefaultIdentityProvider

public class CoingiDefaultIdentityProvider
extends Object
  • 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 part
      privateKey - Private API key part
  • Method Details

    • getPublicKey

      public byte[] getPublicKey()
      Returns the public key part.
      Returns:
      Public key
    • getSignature

      public String getSignature​(long nonce)
      Returns a valid signature for the given nonce.
      Parameters:
      nonce - Request nonce
      Returns:
      Request signature