Hello,
I have my consumer key and consumer secret.
A third party also has my consumer key and secret.
I am using Signpost (signpost-core-1.2.1.2.jar and signpost-commonshttp4-1.2.1.2.jar) to sign my requests to the third party.
When the third party sends me a request - the request is also signed using my consumer key and secret.
I want to authenticate / validate that the request is signed properly so I will be sure it is the third party that issued the request.
I could find a solution so I wrote a class that validates the signature (attached).
The class works as expected and is suitable for my needs.
However, I was wondering is there a better way to authenticate the request?
Thanks.