code: public static String getSHA1(String token, String timestamp, String nonce, String encrypt) throws AesException {
          try {
              String[] array = new String[]{token, timestamp, nonce, encrypt};
              StringBuffer sb = new StringBuffer();
              // 字符串排序
              Arrays.sort(array);
              for (int i = 0; i < 4; i++) {
                  sb.append(array[i]);
              }
              String str = sb.toString();
  
              return getSHA1HexString(str);
          } catch (Exception e) {
              e.printStackTrace();
              throw new AesException(AesException.ComputeSignatureError);
          }
      }
docs: 用SHA1算法生成安全签名
  
  @param token     票据
  @param timestamp 时间戳
  @param nonce     随机字符串
  @param encrypt   密文
  @return 安全签名
  @throws AesException AES算法异常