edit-icon download-icon

The expiration time of URL signature set in Java SDK is too long and does not take effect

Last Updated: Apr 11, 2018


The URL signature expiration time set in the Java SDK cannot take effect.


The default value type for the URL signature expiration time is int. If the value is set to a long period of time, such as 100 years, the calculation formula is 3600 x 1000 x 24 x 365 x 100, which exceeds the calculation range of the int type.


Java SDK needs to call the generatePresignedUrl function to obtain the URL signature link and the expiration time must be set in the function.

Convert the parameter value to long type. That is, set the expiration parameter to 3600 x 1000 x 24 x 365 x 100.

Thank you! We've received your feedback.