C# Class VirtoCommerce.SwaggerApiClient.HmacUtility

显示文件 Open project: VirtoCommerce/vc-internal Class Usage Examples

Public Methods

Method Description
ComputeHash ( HMAC>.Func hmacFactory, byte secretKey, byte data ) : string
ComputeHash ( HMAC>.Func hmacFactory, string secretKey, string data ) : string
GetHashString ( HMAC>.Func hmacFactory, string secretKey, NameValuePair parameters ) : string

Private Methods

Method Description
BuildDataString ( NameValuePair parameters ) : string
ConvertBytesToHexString ( byte bytes ) : string
ConvertHexStringToBytes ( string hexString ) : byte[]

Method Details

ComputeHash() public static method

public static ComputeHash ( HMAC>.Func hmacFactory, byte secretKey, byte data ) : string
hmacFactory HMAC>.Func
secretKey byte
data byte
return string

ComputeHash() public static method

public static ComputeHash ( HMAC>.Func hmacFactory, string secretKey, string data ) : string
hmacFactory HMAC>.Func
secretKey string
data string
return string

GetHashString() public static method

public static GetHashString ( HMAC>.Func hmacFactory, string secretKey, NameValuePair parameters ) : string
hmacFactory HMAC>.Func
secretKey string
parameters NameValuePair
return string