class Amazonite::Kms::SignResponse

Included Modules

Defined in:

kms/sign_response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(key_id : String | Nil = nil, signature : Bytes | Nil = nil, signing_algorithm : SigningAlgorithmSpec | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def key_id : String | Nil #

The Amazon Resource Name (key ARN) of the asymmetric KMS key that was used to sign the message.


[View source]
def key_id=(key_id : String | Nil) #

The Amazon Resource Name (key ARN) of the asymmetric KMS key that was used to sign the message.


[View source]
def signature : Bytes | Nil #

The cryptographic signature that was generated for the message.

  • When used with the supported RSA signing algorithms, the encoding of this value is defined by PKCS #1 in RFC 8017.

  • When used with the ECDSA_SHA_256, ECDSA_SHA_384, or ECDSA_SHA_512 signing algorithms, this value is a DER-encoded object as defined by ANSI X9.62–2005 and RFC 3279 Section 2.2.3. This is the most commonly used signature format and is appropriate for most uses.

When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.


[View source]
def signature=(signature : Bytes | Nil) #

The cryptographic signature that was generated for the message.

  • When used with the supported RSA signing algorithms, the encoding of this value is defined by PKCS #1 in RFC 8017.

  • When used with the ECDSA_SHA_256, ECDSA_SHA_384, or ECDSA_SHA_512 signing algorithms, this value is a DER-encoded object as defined by ANSI X9.62–2005 and RFC 3279 Section 2.2.3. This is the most commonly used signature format and is appropriate for most uses.

When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.


[View source]
def signing_algorithm : SigningAlgorithmSpec | Nil #

The signing algorithm that was used to sign the message.


[View source]
def signing_algorithm=(signing_algorithm : SigningAlgorithmSpec | Nil) #

The signing algorithm that was used to sign the message.


[View source]
def validate! : Nil #

[View source]