Struct aws_sdk_kms::operation::sign::builders::SignOutputBuilder
source · #[non_exhaustive]pub struct SignOutputBuilder { /* private fields */ }
Expand description
A builder for SignOutput
.
Implementations§
source§impl SignOutputBuilder
impl SignOutputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The Amazon Resource Name (key ARN) of the asymmetric KMS key that was used to sign the message.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The Amazon Resource Name (key ARN) of the asymmetric KMS key that was used to sign the message.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The Amazon Resource Name (key ARN) of the asymmetric KMS key that was used to sign the message.
sourcepub fn signature(self, input: Blob) -> Self
pub fn signature(self, input: Blob) -> Self
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
, orECDSA_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.
sourcepub fn set_signature(self, input: Option<Blob>) -> Self
pub fn set_signature(self, input: Option<Blob>) -> Self
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
, orECDSA_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.
sourcepub fn get_signature(&self) -> &Option<Blob>
pub fn get_signature(&self) -> &Option<Blob>
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
, orECDSA_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.
sourcepub fn signing_algorithm(self, input: SigningAlgorithmSpec) -> Self
pub fn signing_algorithm(self, input: SigningAlgorithmSpec) -> Self
The signing algorithm that was used to sign the message.
sourcepub fn set_signing_algorithm(self, input: Option<SigningAlgorithmSpec>) -> Self
pub fn set_signing_algorithm(self, input: Option<SigningAlgorithmSpec>) -> Self
The signing algorithm that was used to sign the message.
sourcepub fn get_signing_algorithm(&self) -> &Option<SigningAlgorithmSpec>
pub fn get_signing_algorithm(&self) -> &Option<SigningAlgorithmSpec>
The signing algorithm that was used to sign the message.
sourcepub fn build(self) -> SignOutput
pub fn build(self) -> SignOutput
Consumes the builder and constructs a SignOutput
.
Trait Implementations§
source§impl Clone for SignOutputBuilder
impl Clone for SignOutputBuilder
source§fn clone(&self) -> SignOutputBuilder
fn clone(&self) -> SignOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SignOutputBuilder
impl Debug for SignOutputBuilder
source§impl Default for SignOutputBuilder
impl Default for SignOutputBuilder
source§fn default() -> SignOutputBuilder
fn default() -> SignOutputBuilder
source§impl PartialEq for SignOutputBuilder
impl PartialEq for SignOutputBuilder
source§fn eq(&self, other: &SignOutputBuilder) -> bool
fn eq(&self, other: &SignOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.