public static String generateSignature(String secureId, long timestamp, int randomValue, String secureKey) {
        Base64 base64 = new Base64();
        byte[] baseStr = base64.encode(HmacUtils.hmacSha1(secureKey, secureId + timestamp + randomValue));
        String result = "";
        try {
            result = URLEncoder.encode(new String(baseStr), StandardCharsets.UTF_8.toString());
        } catch (Throwable ex) {
            if (exptCounter.shouldPrint()) {
                logger.warn("Generate signature throw exception", ex);
            }
        }
        return result;
    }
Authenticate Utils class

Used to place public processing functions related to authentication and signature
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/utils/AuthzUtils.java