class CoinexDigest extends BaseParamsDigest {

  private ThreadLocal<byte[]> threadLocalMac;
  private final String secret;
  private final String apiKey;

  private CoinexDigest(String secretKeyBase64, String apiKey) {
    super(secretKeyBase64, HMAC_MD5);
    this.secret = secretKeyBase64;
    this.apiKey = apiKey;
  }

  public static CoinexDigest createInstance(String secretKeyBase64, String apiKey) {<FILL_FUNCTION_BODY>}

  @Override
  public String digestParams(RestInvocation restInvocation) {

    return new BasicAuthCredentials(apiKey, secret).digestParams(restInvocation);
  }
}


    return secretKeyBase64 == null ? null : new CoinexDigest(secretKeyBase64, apiKey);
  
<methods>public javax.crypto.Mac getMac() <variables>public static final java.lang.String HMAC_MD5,public static final java.lang.String HMAC_SHA_1,public static final java.lang.String HMAC_SHA_256,public static final java.lang.String HMAC_SHA_384,public static final java.lang.String HMAC_SHA_512,private final non-sealed javax.crypto.Mac mac