OAuth Base Class for Delphi

This is a Delphi Prism direct translation of the C# OAuthBase.cs by Eran Sandler. It is functional, but there are still a few signing methods missing at this point which I need a bit more time to test against different OAuth Services.

You can download the initial version of dOAuthBase.pas here.

Sample usage:

var
  oauth: TOAuthBase;
  url: Uri;
  signature: string;

begin
  oauth = new TOAuthBase();
  url = new Uri(”http://www.my-oauth-url.com/resource/query”);
  signature = oauth.GenerateSignature(url, “dpf43f3p2l4k3l03?, “kd94hf93k423kf44?, “nnch734d00sl2jdk”, “pfkkdhi9sl3r4s00?, “GET”, oauth.GenerateTimeStamp(), oauth.GenerateNonce(), dOAuthBase.TSignatureTypes.HMACSHA1);
end;

delphiprism
Please let me know if you have any suggestions or improvements to make to the code. There is an OAuth Test Server run by term.ie where you can test the library against a server implementation.

Boring Standard Disclaimer:
The code described herein is provided on an “as is” basis, without warranty of any kind, to the fullest extent permitted by law.
Jamie does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the code. Jamie disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto.
Jamie shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the code.