C# Class Amazon.Runtime.Internal.Auth.AbstractAWSSigner

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

Private Properties

Property Type Description

Public Methods

Method Description
Sign ( IRequest request, IClientConfig clientConfig, RequestMetrics metrics, string awsAccessKeyId, string awsSecretAccessKey ) : void

Protected Methods

Method Description
ComputeHash ( byte data, string secretkey, SigningAlgorithm algorithm ) : string

Computes RFC 2104-compliant HMAC signature.

ComputeHash ( string data, string secretkey, SigningAlgorithm algorithm ) : string

Computes RFC 2104-compliant HMAC signature.

SelectSigner ( AbstractAWSSigner defaultSigner, bool useSigV4Setting, IRequest request, IClientConfig config ) : AbstractAWSSigner
SelectSigner ( IRequest request, IClientConfig config ) : AbstractAWSSigner
UseV4Signing ( bool useSigV4Setting, IRequest request, IClientConfig config ) : bool

Inspects the supplied evidence to return the signer appropriate for the operation

Method Details

ComputeHash() protected static method

Computes RFC 2104-compliant HMAC signature.
protected static ComputeHash ( byte data, string secretkey, SigningAlgorithm algorithm ) : string
data byte
secretkey string
algorithm SigningAlgorithm
return string

ComputeHash() protected static method

Computes RFC 2104-compliant HMAC signature.
protected static ComputeHash ( string data, string secretkey, SigningAlgorithm algorithm ) : string
data string
secretkey string
algorithm SigningAlgorithm
return string

SelectSigner() protected method

protected SelectSigner ( AbstractAWSSigner defaultSigner, bool useSigV4Setting, IRequest request, IClientConfig config ) : AbstractAWSSigner
defaultSigner AbstractAWSSigner
useSigV4Setting bool
request IRequest
config IClientConfig
return AbstractAWSSigner

SelectSigner() protected method

protected SelectSigner ( IRequest request, IClientConfig config ) : AbstractAWSSigner
request IRequest
config IClientConfig
return AbstractAWSSigner

Sign() public abstract method

public abstract Sign ( IRequest request, IClientConfig clientConfig, RequestMetrics metrics, string awsAccessKeyId, string awsSecretAccessKey ) : void
request IRequest
clientConfig IClientConfig
metrics Amazon.Runtime.Internal.Util.RequestMetrics
awsAccessKeyId string
awsSecretAccessKey string
return void

UseV4Signing() protected static method

Inspects the supplied evidence to return the signer appropriate for the operation
protected static UseV4Signing ( bool useSigV4Setting, IRequest request, IClientConfig config ) : bool
useSigV4Setting bool Global setting for the service
request IRequest The request.
config IClientConfig Configuration for the client
return bool