NetFramework-SC.Data.Rest 0.0.3

.NET Framework 4.6.1
There is a newer version of this package available.
See the version list below for details.
dotnet add package NetFramework-SC.Data.Rest --version 0.0.3
NuGet\Install-Package NetFramework-SC.Data.Rest -Version 0.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetFramework-SC.Data.Rest" Version="0.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetFramework-SC.Data.Rest --version 0.0.3
#r "nuget: NetFramework-SC.Data.Rest, 0.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NetFramework-SC.Data.Rest as a Cake Addin
#addin nuget:?package=NetFramework-SC.Data.Rest&version=0.0.3

// Install NetFramework-SC.Data.Rest as a Cake Tool
#tool nuget:?package=NetFramework-SC.Data.Rest&version=0.0.3


<table> <tbody> <tr> <td><a href="#hmacauthenticator">HMACAuthenticator</a></td> <td><a href="#jsonnetserializer">JsonNetSerializer</a></td> </tr> <tr> <td><a href="#utils">Utils</a></td> </tr> </tbody> </table>


HMAC implementation of Restsharp IAuthenticator.


Default constructor. For deserialization.

Constructor(appName, secret)

Contructor initialization using appName and secret.

Name Description
appName System.String<br>
secret System.String<br>


Application name.

Authenticate(client, request)

Method implementing point of entry for RestSharp authentication.

Name Description
client RestSharp.IRestClient<br>
request RestSharp.IRestRequest<br>

GetAuthHeader(requestContentType, requestBodyMd5, requestUrl, requestTs)

Process information into Authentication header value.

Name Description
requestContentType System.String<br>
requestBodyMd5 System.String<br>
requestUrl System.String<br>
requestTs System.DateTime<br>

GetCanonicalString(contentType, bodyMd5, url, timestamp)

Builds canonical string used by this IAuthenticator implementation.

Name Description
contentType System.String<br>Post/Update content type. Null if transaction is not Post/Update.
bodyMd5 System.String<br>MD5 of Post/Update body. Null if transaction is not Post/Update.
url System.String<br>Endpoit url without the hostname.
timestamp System.DateTime<br>TimeStamp of transaction.

Canonical string

GetHeader(appName, hMacSignature)

Concatenates appName an HMACSignature into Authentication header value.

Name Description
appName System.String<br>HMC application name.
hMacSignature System.String<br>HMAC signature

formated header.


Calculates HMAC for a bytes array.

Name Description
valueBytes System.Byte[]<br>array of bytes to calculate HMAC on.

Base64 encoded signature


Calculates HMAC for a given string value.

Name Description
value System.String<br>string value to calculate HMAC on.

GetMd5(md5Hash, input)

Return MD5 has for a given string.

Name Description
md5Hash System.Security.Cryptography.MD5<br>
input System.String<br>


Local log4net logger.


Application secret.


Special Circumstances ISerializer to be used during RestSharp request/response for serializing object into Json.


Setting serialization content type to Json.


Not implemented.


Not implemented.


Not implemented.


Json Serialize object.

Name Description
obj System.Object<br>

Json serialization


Special Circumstances Restsharp utilities.

NewRequest(client, resource, method)

Default Restsharp request.

Name Description
client RestSharp.RestClient<br>
resource System.String<br>Referencial uri resource.
method RestSharp.Method<br>HTTP method.
Product Versions
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NetFramework-SC.Data.Rest:

Package Downloads

AWS functionality for Special Circumstances play ground.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.8 707 7/24/2018
0.0.7 1,001 7/19/2018
0.0.6 734 7/16/2018
0.0.4 862 7/8/2018
0.0.3 886 7/3/2018
0.0.2 733 7/1/2018
0.0.1 980 6/18/2018
0.0.1-alpha 742 5/26/2018

First test package.