C# Class Elasticsearch.Net.Aws.SignV4Util

显示文件 Open project: bcuff/elasticsearch-net-aws Class Usage Examples

Public Methods

Method Description
GetCanonicalQueryString ( this uri ) : string
GetCanonicalRequest ( IRequest request, byte data ) : string
GetSigningKey ( string secretKey, string dateStamp, string region, string service ) : byte[]
GetStringToSign ( IRequest request, byte data, string region, string service ) : string
SignRequest ( IRequest request, byte body, Credentials credentials, string region, string service ) : void

Private Methods

Method Description
GetCanonicalHeaders ( this request ) : string>.Dictionary
GetCredentialScope ( string date, string region, string service ) : string
GetHash ( string data ) : byte[]
GetHash ( this data ) : byte[]
GetHmacSha256Hash ( this key, string data ) : byte[]
GetPath ( Uri uri ) : string
GetSignedHeaders ( IRequest request ) : string
ParseQueryString ( string query ) : NameValueCollection
RequiresEncoding ( this value ) : bool
ToLowercaseHex ( this data ) : string
WriteCanonicalHeaders ( string>.Dictionary canonicalHeaders, StringBuilder output ) : void
WriteEncoded ( this output, string value ) : void
WriteRequestPayloadHash ( byte data, StringBuilder output ) : void
WriteSignedHeaders ( string>.Dictionary canonicalHeaders, StringBuilder output ) : void

Method Details

GetCanonicalQueryString() public static method

public static GetCanonicalQueryString ( this uri ) : string
uri this
return string

GetCanonicalRequest() public static method

public static GetCanonicalRequest ( IRequest request, byte data ) : string
request IRequest
data byte
return string

GetSigningKey() public static method

public static GetSigningKey ( string secretKey, string dateStamp, string region, string service ) : byte[]
secretKey string
dateStamp string
region string
service string
return byte[]

GetStringToSign() public static method

public static GetStringToSign ( IRequest request, byte data, string region, string service ) : string
request IRequest
data byte
region string
service string
return string

SignRequest() public static method

public static SignRequest ( IRequest request, byte body, Credentials credentials, string region, string service ) : void
request IRequest
body byte
credentials Credentials
region string
service string
return void