Hello,

I am trying to use SAML token and signatures with my GET request using RestTemplate. I have two paramters that needs to go with every request - Token and Signature. For example, my request is:

Code:
http://com.mycompany.org/REST/item/10
WIth Token and SIgnature, it is like:

Code:
http://com.mycompany.org/REST/item/10?Token=tokkkkk&Signature=sigsigsig
I am using RestTemplate to send the request as follows:

[code]restTemplate.getForObject(URI.create("http://com.mycompany.org/REST/item/10?Token=tokkk%3D%2Ekk&Signature=sig%3Dsig%3Asig", Item.class);[/cdoe]

Without the token and signature, I can get it to work. However, after adding the authenticator and token and signature as request parameters in the handler method, I am not getting responses anymore. The response comes out as 500 Internal Server Error. My keysets at client and server sides are correct ones and I have written JUnit tests that pass successfully.

How can I resolve this?