Hi Jeff,
The Signed URL documentation
(
https://developers.google.com/storage/docs/accesscontrol#Signed-URLs)
specifies the Expiration as "the number of seconds since the Unix
Epoch of 00:00:00 UTC on January 1, 1970."
However, Shrek's sample code uses calendar.getTimeInMillis(), which
calculates the expiration in terms of milliseconds since 1970. Using
this code, if you set an expiration of January 1st, 00:00:00, 1972,
the actual token expiration would be (approximately) January 1st,
00:00:00, 3970.
Did you already correct this issue prior to your testing?
On Sun, Dec 23, 2012 at 11:06 AM, Jeff <
innovativ...@gmail.com> wrote:
> Shrek,
>
> Thank you for the Java Code. The implementation of signing urls for Google
> Cloud storage is not straight forward. I was finally able (with your Java
> code example) to actually get the Cloud Storage to recognize that my
> signature was valid and it does in fact return me my asset.
>
> I then started playing around with the expiration date. Problem is that
> once you create a signed URL, regardless of the expiration, Google Cloud
> Storage gives you the asset. I've subtracted years from the current
> date/time and the Cloud Service still gives me my assets back.
>
> Have you been successful in getting the expiration to work with Cloud
> Storage? If so, how?
>
> -Jeff
> --
>
>