C# Class gov.data.util.GOVDataUtil

Mostrar archivo Open project: USDepartmentofLabor/DotNet_DOLDataSDK

Public Methods

Method Description
GOVDataRequest ( string uri ) : string
GOVDataRequest ( string uri, string key ) : string
GOVDataRequest ( string uri, string key, string username ) : string
Hash ( string data, string seed ) : string

Utility method to hash a string using HMAC-SHA1

service_SendingRequest ( object sender, System.Data.Services.Client.SendingRequestEventArgs e ) : void

Event handler for the SendingRequest event of the Service Reference class

Private Methods

Method Description
GOVDataRequestor ( string uri, string key, string username ) : string

GOVDataRequestor is private method used by GOVDataRequest to use when accessing all non-DOL Government APIs

Method Details

GOVDataRequest() public static method

public static GOVDataRequest ( string uri ) : string
uri string
return string

GOVDataRequest() public static method

public static GOVDataRequest ( string uri, string key ) : string
uri string
key string
return string

GOVDataRequest() public static method

public static GOVDataRequest ( string uri, string key, string username ) : string
uri string
key string
username string
return string

Hash() public static method

Utility method to hash a string using HMAC-SHA1
public static Hash ( string data, string seed ) : string
data string The string to be hashed
seed string The key to sign with
return string

service_SendingRequest() public static method

Event handler for the SendingRequest event of the Service Reference class
public static service_SendingRequest ( object sender, System.Data.Services.Client.SendingRequestEventArgs e ) : void
sender object
e System.Data.Services.Client.SendingRequestEventArgs
return void