class

Awscr::Signer::V4::Signature

Inherits Reference < Object

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`

Constructors

new(scope : Scope, string : String, credentials : Credentials, compute_digest : Bool = true)
Source
new(scope : Scope, request : Request, credentials : Credentials, compute_digest : Bool = true)
Source

Instance methods

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

Source