Class Aws4HmacAuthorizationHeader
- Namespace
- Codebelt.Extensions.AwsSignature4
- Assembly
- Codebelt.Extensions.AwsSignature4.dll
Provides a representation of a HTTP AWS4-HMAC-SHA256 Authentication header.
public class Aws4HmacAuthorizationHeader : HmacAuthorizationHeader
- Inheritance
-
Aws4HmacAuthorizationHeader
- Inherited Members
Constructors
Aws4HmacAuthorizationHeader(String, String, String, String)
Initializes a new instance of the Aws4HmacAuthorizationHeader class.
public Aws4HmacAuthorizationHeader(string clientId, string credentialScope, string signedHeaders, string signature)
Parameters
clientId
StringThe client identifier that is the public key of the signing process.
credentialScope
StringThe credential scope that defines the remote resource.
signedHeaders
StringThe headers that will be part of the signing process.
signature
StringThe signature that represents the integrity of this header.
Methods
Create(String, Action<AuthorizationHeaderOptions>)
Creates an instance of Aws4HmacAuthorizationHeader from the specified parameters.
public static HmacAuthorizationHeader Create(string authorizationHeader, Action<AuthorizationHeaderOptions> setup = null)
Parameters
authorizationHeader
StringThe raw HTTP authorization header.
setup
Action<AuthorizationHeaderOptions>The AuthorizationHeaderOptions which may be configured.
Returns
- HmacAuthorizationHeader
An instance of Aws4HmacAuthorizationHeader.
Exceptions
- ArgumentNullException
authorizationHeader
cannot be null.- ArgumentException
authorizationHeader
cannot be empty or consist only of white-space characters.