eksahin / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Singed URL - JAVA API client #880

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which Google API and version (e.g. Google Calendar API version 3)?
googel-api-client-1.18.0-rc.jar

Java environment (e.g. Java 6, Android 2.3, App Engine)?
JDK 6

External references, such as API reference guide?'
https://developers.google.com/storage/docs/accesscontrol#Signing-Strings

Please provide any additional information below.
As per the instruction I am generating signed in URL from java standalone 
application. I am getting below error

<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we 
calculated does not match the signature you provided. Check your Google secret 
key and signing method.</Message><StringToSign>GET

1388534400
/XXXXXXXXXX/XXXXXXXXXXXXXX.jpg</StringToSign></Error>

Can you please help on this.

Thanks,
Manohar

Original issue reported on code.google.com by manoharp...@gmail.com on 27 May 2014 at 8:59

Attachments:

GoogleCodeExporter commented 9 years ago
I am using the same key.p12 file which is authentication for the file upload 
into google storage and retrieval of image.

Original comment by manoharp...@gmail.com on 28 May 2014 at 2:06

Attachments:

GoogleCodeExporter commented 9 years ago
Is the private key (key.p12) the one you got when set up service account?

Original comment by wonder...@google.com on 1 Jul 2014 at 6:40

GoogleCodeExporter commented 9 years ago
I am able to sucessfully implement the functionality. thanks for your help in 
responding to the query.

Original comment by manob...@gmail.com on 2 Jul 2014 at 3:16

GoogleCodeExporter commented 9 years ago
Please close this ticket.

Original comment by manob...@gmail.com on 2 Jul 2014 at 3:16

GoogleCodeExporter commented 9 years ago

Original comment by wonder...@google.com on 2 Jul 2014 at 4:29