#[non_exhaustive]pub struct GetPublicKeyOutputBuilder { /* private fields */ }
Expand description
A builder for GetPublicKeyOutput
.
Implementations§
source§impl GetPublicKeyOutputBuilder
impl GetPublicKeyOutputBuilder
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 from which the public key was downloaded.
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 from which the public key was downloaded.
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 from which the public key was downloaded.
sourcepub fn public_key(self, input: Blob) -> Self
pub fn public_key(self, input: Blob) -> Self
The exported public key.
The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as defined in RFC 5280. 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_public_key(self, input: Option<Blob>) -> Self
pub fn set_public_key(self, input: Option<Blob>) -> Self
The exported public key.
The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as defined in RFC 5280. 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_public_key(&self) -> &Option<Blob>
pub fn get_public_key(&self) -> &Option<Blob>
The exported public key.
The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as defined in RFC 5280. 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 customer_master_key_spec(self, input: CustomerMasterKeySpec) -> Self
👎Deprecated: This field has been deprecated. Instead, use the KeySpec field.
pub fn customer_master_key_spec(self, input: CustomerMasterKeySpec) -> Self
Instead, use the KeySpec
field in the GetPublicKey
response.
The KeySpec
and CustomerMasterKeySpec
fields have the same value. We recommend that you use the KeySpec
field in your code. However, to avoid breaking changes, KMS supports both fields.
sourcepub fn set_customer_master_key_spec(
self,
input: Option<CustomerMasterKeySpec>
) -> Self
👎Deprecated: This field has been deprecated. Instead, use the KeySpec field.
pub fn set_customer_master_key_spec( self, input: Option<CustomerMasterKeySpec> ) -> Self
Instead, use the KeySpec
field in the GetPublicKey
response.
The KeySpec
and CustomerMasterKeySpec
fields have the same value. We recommend that you use the KeySpec
field in your code. However, to avoid breaking changes, KMS supports both fields.
sourcepub fn get_customer_master_key_spec(&self) -> &Option<CustomerMasterKeySpec>
👎Deprecated: This field has been deprecated. Instead, use the KeySpec field.
pub fn get_customer_master_key_spec(&self) -> &Option<CustomerMasterKeySpec>
Instead, use the KeySpec
field in the GetPublicKey
response.
The KeySpec
and CustomerMasterKeySpec
fields have the same value. We recommend that you use the KeySpec
field in your code. However, to avoid breaking changes, KMS supports both fields.
sourcepub fn key_spec(self, input: KeySpec) -> Self
pub fn key_spec(self, input: KeySpec) -> Self
The type of the of the public key that was downloaded.
sourcepub fn set_key_spec(self, input: Option<KeySpec>) -> Self
pub fn set_key_spec(self, input: Option<KeySpec>) -> Self
The type of the of the public key that was downloaded.
sourcepub fn get_key_spec(&self) -> &Option<KeySpec>
pub fn get_key_spec(&self) -> &Option<KeySpec>
The type of the of the public key that was downloaded.
sourcepub fn key_usage(self, input: KeyUsageType) -> Self
pub fn key_usage(self, input: KeyUsageType) -> Self
The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data outside of KMS, the ciphertext cannot be decrypted.
sourcepub fn set_key_usage(self, input: Option<KeyUsageType>) -> Self
pub fn set_key_usage(self, input: Option<KeyUsageType>) -> Self
The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data outside of KMS, the ciphertext cannot be decrypted.
sourcepub fn get_key_usage(&self) -> &Option<KeyUsageType>
pub fn get_key_usage(&self) -> &Option<KeyUsageType>
The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data outside of KMS, the ciphertext cannot be decrypted.
sourcepub fn encryption_algorithms(self, input: EncryptionAlgorithmSpec) -> Self
pub fn encryption_algorithms(self, input: EncryptionAlgorithmSpec) -> Self
Appends an item to encryption_algorithms
.
To override the contents of this collection use set_encryption_algorithms
.
The encryption algorithms that KMS supports for this key.
This information is critical. If a public key encrypts data outside of KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is ENCRYPT_DECRYPT
.
sourcepub fn set_encryption_algorithms(
self,
input: Option<Vec<EncryptionAlgorithmSpec>>
) -> Self
pub fn set_encryption_algorithms( self, input: Option<Vec<EncryptionAlgorithmSpec>> ) -> Self
The encryption algorithms that KMS supports for this key.
This information is critical. If a public key encrypts data outside of KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is ENCRYPT_DECRYPT
.
sourcepub fn get_encryption_algorithms(&self) -> &Option<Vec<EncryptionAlgorithmSpec>>
pub fn get_encryption_algorithms(&self) -> &Option<Vec<EncryptionAlgorithmSpec>>
The encryption algorithms that KMS supports for this key.
This information is critical. If a public key encrypts data outside of KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is ENCRYPT_DECRYPT
.
sourcepub fn signing_algorithms(self, input: SigningAlgorithmSpec) -> Self
pub fn signing_algorithms(self, input: SigningAlgorithmSpec) -> Self
Appends an item to signing_algorithms
.
To override the contents of this collection use set_signing_algorithms
.
The signing algorithms that KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is SIGN_VERIFY
.
sourcepub fn set_signing_algorithms(
self,
input: Option<Vec<SigningAlgorithmSpec>>
) -> Self
pub fn set_signing_algorithms( self, input: Option<Vec<SigningAlgorithmSpec>> ) -> Self
The signing algorithms that KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is SIGN_VERIFY
.
sourcepub fn get_signing_algorithms(&self) -> &Option<Vec<SigningAlgorithmSpec>>
pub fn get_signing_algorithms(&self) -> &Option<Vec<SigningAlgorithmSpec>>
The signing algorithms that KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is SIGN_VERIFY
.
sourcepub fn build(self) -> GetPublicKeyOutput
pub fn build(self) -> GetPublicKeyOutput
Consumes the builder and constructs a GetPublicKeyOutput
.
Trait Implementations§
source§impl Clone for GetPublicKeyOutputBuilder
impl Clone for GetPublicKeyOutputBuilder
source§fn clone(&self) -> GetPublicKeyOutputBuilder
fn clone(&self) -> GetPublicKeyOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetPublicKeyOutputBuilder
impl Debug for GetPublicKeyOutputBuilder
source§impl Default for GetPublicKeyOutputBuilder
impl Default for GetPublicKeyOutputBuilder
source§fn default() -> GetPublicKeyOutputBuilder
fn default() -> GetPublicKeyOutputBuilder
source§impl PartialEq for GetPublicKeyOutputBuilder
impl PartialEq for GetPublicKeyOutputBuilder
source§fn eq(&self, other: &GetPublicKeyOutputBuilder) -> bool
fn eq(&self, other: &GetPublicKeyOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.