class Awscr::Signer::V4::Signature
- Awscr::Signer::V4::Signature
- Reference
- Object
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.crConstructors
- .new(scope : Scope, string : String, credentials : Credentials, compute_digest : Bool = true)
- .new(scope : Scope, request : Request, credentials : Credentials, compute_digest : Bool = true)
Instance Method Summary
-
#to_s(io : IO)
Compute the digest of the signing key and the string we are signing.
Constructor Detail
def self.new(scope : Scope, string : String, credentials : Credentials, compute_digest : Bool = true)
#
def self.new(scope : Scope, request : Request, credentials : Credentials, compute_digest : Bool = true)
#
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