Example codes of the presigned URL are as follows:
// Generate a presigned URL
Date expires = new Date (new Date().getTime() + 1000 * 60); // 1 minute to expire
GeneratePresignedUrlRequest generatePresignedUrlRequest = new GeneratePresignedUrlRequest(bucketName, key);
URL url = client.generatePresignedUrl(generatePresignedUrlRequest);
This section of code assumes that the object with the specified bucketName and key has been uploaded to the OSS, and the users can set the expiration time of expires.More detailed operations can be found in help on OSSClient#generatePresignedUrl and GeneratePresignedUrlRequest.