Did you see this example http://oauth.googlecode.com/svn/code/java/example/oauth-provider/ ?
HTH, Rob On Mon, Oct 12, 2009 at 2:19 AM, Anuradha Thota <anuradha.th...@gmail.com>wrote: > > Hi, > Iam trying to implement a sample oauth consumer(plain java) and a > service provider(servlet). > In my client i have done the following: > URL url = new URL("http://localhost:8080/OauthSample/HelloWorld"); > HttpURLConnection conn=(HttpURLConnection)url.openConnection(); > OAuthMessage message = > new OAuthMessage("POST", url.toString(),null); > > OAuthConsumer consumer = > new OAuthConsumer(null, CONSUMER_KEY, > CONSUMER_SECRET, null); > consumer.setProperty(OAuth.OAUTH_SIGNATURE_METHOD, > OAuth.HMAC_SHA1); > > OAuthAccessor accessor = new > OAuthAccessor(consumer); > accessor.accessToken = ""; > > message.addRequiredParameters(accessor); > i got the signature.But now how do i verifying/validate this signature > on my service provider side. > Any help on this would be appreciated.Please provide a sample > implementation. > > Regards, > Anuradha > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to oauth@googlegroups.com To unsubscribe from this group, send email to oauth+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/oauth?hl=en -~----------~----~----~----~------~----~------~--~---