#[non_exhaustive]pub struct KeyAttributesBuilder { /* private fields */ }
Expand description
A builder for KeyAttributes
.
Implementations§
source§impl KeyAttributesBuilder
impl KeyAttributesBuilder
sourcepub fn key_usage(self, input: KeyUsage) -> Self
pub fn key_usage(self, input: KeyUsage) -> Self
The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.
sourcepub fn set_key_usage(self, input: Option<KeyUsage>) -> Self
pub fn set_key_usage(self, input: Option<KeyUsage>) -> Self
The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.
sourcepub fn get_key_usage(&self) -> &Option<KeyUsage>
pub fn get_key_usage(&self) -> &Option<KeyUsage>
The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.
sourcepub fn key_class(self, input: KeyClass) -> Self
pub fn key_class(self, input: KeyClass) -> Self
The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.
sourcepub fn set_key_class(self, input: Option<KeyClass>) -> Self
pub fn set_key_class(self, input: Option<KeyClass>) -> Self
The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.
sourcepub fn get_key_class(&self) -> &Option<KeyClass>
pub fn get_key_class(&self) -> &Option<KeyClass>
The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.
sourcepub fn key_algorithm(self, input: KeyAlgorithm) -> Self
pub fn key_algorithm(self, input: KeyAlgorithm) -> Self
The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.
For symmetric keys, Amazon Web Services Payment Cryptography supports AES
and TDES
algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA
and ECC_NIST
algorithms.
sourcepub fn set_key_algorithm(self, input: Option<KeyAlgorithm>) -> Self
pub fn set_key_algorithm(self, input: Option<KeyAlgorithm>) -> Self
The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.
For symmetric keys, Amazon Web Services Payment Cryptography supports AES
and TDES
algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA
and ECC_NIST
algorithms.
sourcepub fn get_key_algorithm(&self) -> &Option<KeyAlgorithm>
pub fn get_key_algorithm(&self) -> &Option<KeyAlgorithm>
The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.
For symmetric keys, Amazon Web Services Payment Cryptography supports AES
and TDES
algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA
and ECC_NIST
algorithms.
sourcepub fn key_modes_of_use(self, input: KeyModesOfUse) -> Self
pub fn key_modes_of_use(self, input: KeyModesOfUse) -> Self
The list of cryptographic operations that you can perform using the key.
sourcepub fn set_key_modes_of_use(self, input: Option<KeyModesOfUse>) -> Self
pub fn set_key_modes_of_use(self, input: Option<KeyModesOfUse>) -> Self
The list of cryptographic operations that you can perform using the key.
sourcepub fn get_key_modes_of_use(&self) -> &Option<KeyModesOfUse>
pub fn get_key_modes_of_use(&self) -> &Option<KeyModesOfUse>
The list of cryptographic operations that you can perform using the key.
sourcepub fn build(self) -> KeyAttributes
pub fn build(self) -> KeyAttributes
Consumes the builder and constructs a KeyAttributes
.
Trait Implementations§
source§impl Clone for KeyAttributesBuilder
impl Clone for KeyAttributesBuilder
source§fn clone(&self) -> KeyAttributesBuilder
fn clone(&self) -> KeyAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyAttributesBuilder
impl Debug for KeyAttributesBuilder
source§impl Default for KeyAttributesBuilder
impl Default for KeyAttributesBuilder
source§fn default() -> KeyAttributesBuilder
fn default() -> KeyAttributesBuilder
source§impl PartialEq for KeyAttributesBuilder
impl PartialEq for KeyAttributesBuilder
source§fn eq(&self, other: &KeyAttributesBuilder) -> bool
fn eq(&self, other: &KeyAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.