@Test public void getSignatureArray() { Param[] params = initParamsArray(); System.out.println(Signature.getSignature(params,account)); }
protected static String getSignature(Param[] params, Account account) { String signature = ""; if (params != null) { sortParams(params); String stitchParams = stitchParams(params); stitchParams += account.getPrivateKey(); signature = sha1(stitchParams); } return signature; }
Signature { protected static String getSignature(Param[] params, Account account) { String signature = ""; if (params != null) { sortParams(params); String stitchParams = stitchParams(params); stitchParams += account.getPrivateKey(); signature = sha1(stitchParams); } return signature; } }
Signature { protected static String getSignature(Param[] params, Account account) { String signature = ""; if (params != null) { sortParams(params); String stitchParams = stitchParams(params); stitchParams += account.getPrivateKey(); signature = sha1(stitchParams); } return signature; }  }
Signature { protected static String getSignature(Param[] params, Account account) { String signature = ""; if (params != null) { sortParams(params); String stitchParams = stitchParams(params); stitchParams += account.getPrivateKey(); signature = sha1(stitchParams); } return signature; }  static String stitchParams(Param[] params); static String stitchParams(List<Param> params); static String sha1(String decrypt); }
Signature { protected static String getSignature(Param[] params, Account account) { String signature = ""; if (params != null) { sortParams(params); String stitchParams = stitchParams(params); stitchParams += account.getPrivateKey(); signature = sha1(stitchParams); } return signature; }  static String stitchParams(Param[] params); static String stitchParams(List<Param> params); static String sha1(String decrypt);  }