对应的java代码如下
// author: herbert 公众号:小院不小 20210424publicstatic StringgetSignature(String token, String timestamp, String nonce){	String[] array =new String[] { token, timestamp, nonce };	Arrays.sort(array);	StringBuffer sb =new StringBuffer();for (String str : array) {	sb.append(str);	}try {	MessageDigest md = MessageDigest.getInstance("SHA-1");	md.update(sb.toString().getBytes());byte[] digest = md.digest();	StringBuffer hexStr =new StringBuffer();	String shaHex ="";for (int i =0; i