au.edu.anu.portal.portlets.basiclti.support
Class OAuthSupport

java.lang.Object
  extended by au.edu.anu.portal.portlets.basiclti.support.OAuthSupport

public class OAuthSupport
extends Object

A set of OAuth methods

Author:
Steve Swinsburg (steve.swinsburg@anu.edu.au)

Constructor Summary
OAuthSupport()
           
 
Method Summary
static Map<String,String> signProperties(String url, Map<String,String> props, String method, String key, String secret)
          Sign a property Map with OAuth.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthSupport

public OAuthSupport()
Method Detail

signProperties

public static Map<String,String> signProperties(String url,
                                                Map<String,String> props,
                                                String method,
                                                String key,
                                                String secret)
Sign a property Map with OAuth.

Parameters:
url - the url where the request is to be made
props - the map of properties to sign
method - the HTTP request method, eg POST
key - the oauth_consumer_key
secret - the shared secret
Returns:


Copyright © 2010-2012 Division of Information, Australian National University. All Rights Reserved.