Struct aws_sdk_paymentcryptography::types::KeyAttributes
source · #[non_exhaustive]pub struct KeyAttributes {
pub key_usage: KeyUsage,
pub key_class: KeyClass,
pub key_algorithm: KeyAlgorithm,
pub key_modes_of_use: Option<KeyModesOfUse>,
}
Expand description
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_usage: KeyUsage
The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.
key_class: 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.
key_algorithm: 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.
key_modes_of_use: Option<KeyModesOfUse>
The list of cryptographic operations that you can perform using the key.
Implementations§
source§impl KeyAttributes
impl KeyAttributes
sourcepub fn key_usage(&self) -> &KeyUsage
pub fn key_usage(&self) -> &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) -> &KeyClass
pub fn key_class(&self) -> &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) -> &KeyAlgorithm
pub fn key_algorithm(&self) -> &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) -> Option<&KeyModesOfUse>
pub fn key_modes_of_use(&self) -> Option<&KeyModesOfUse>
The list of cryptographic operations that you can perform using the key.
source§impl KeyAttributes
impl KeyAttributes
sourcepub fn builder() -> KeyAttributesBuilder
pub fn builder() -> KeyAttributesBuilder
Creates a new builder-style object to manufacture KeyAttributes
.
Trait Implementations§
source§impl Clone for KeyAttributes
impl Clone for KeyAttributes
source§fn clone(&self) -> KeyAttributes
fn clone(&self) -> KeyAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyAttributes
impl Debug for KeyAttributes
source§impl PartialEq for KeyAttributes
impl PartialEq for KeyAttributes
source§fn eq(&self, other: &KeyAttributes) -> bool
fn eq(&self, other: &KeyAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.