class Awscr::Signer::V4::Signature

Overview

Calculates an AWS V4 signature for a given object using the provided scope

scope = Scope.new(...)
sig = Signature.new(scope, "some string")
puts sig.to_s # => the signature of the string with the given scope

scope = Scope.new(...)
sig = Signature.new(scope, Request.new(...))
puts sig.to_s # => the signature of the `Request`

Defined in:

awscr-signer/v4/signature.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(scope : Scope, string : String, credentials : Credentials, compute_digest : Bool = true) #

[View source]
def self.new(scope : Scope, request : Request, credentials : Credentials, compute_digest : Bool = true) #

[View source]

Instance Method Detail

def to_s(io : IO) #

Compute the digest of the signing key and the string we are signing. Returns the digest as a downcased hex string


[View source]