Struct aws_sdk_paymentcryptography::types::KeyModesOfUse
source · #[non_exhaustive]pub struct KeyModesOfUse {
pub encrypt: bool,
pub decrypt: bool,
pub wrap: bool,
pub unwrap: bool,
pub generate: bool,
pub sign: bool,
pub verify: bool,
pub derive_key: bool,
pub no_restrictions: bool,
}
Expand description
The list of cryptographic operations that you can perform using the key. The modes of use are defined in section A.5.3 of the TR-31 spec.
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.encrypt: bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.
decrypt: bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data.
wrap: bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.
unwrap: bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.
generate: bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys.
sign: bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing.
verify: bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures.
derive_key: bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.
no_restrictions: bool
Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage
.
Implementations§
source§impl KeyModesOfUse
impl KeyModesOfUse
sourcepub fn encrypt(&self) -> bool
pub fn encrypt(&self) -> bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.
sourcepub fn decrypt(&self) -> bool
pub fn decrypt(&self) -> bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data.
sourcepub fn wrap(&self) -> bool
pub fn wrap(&self) -> bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.
sourcepub fn unwrap(&self) -> bool
pub fn unwrap(&self) -> bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.
sourcepub fn generate(&self) -> bool
pub fn generate(&self) -> bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys.
sourcepub fn sign(&self) -> bool
pub fn sign(&self) -> bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing.
sourcepub fn verify(&self) -> bool
pub fn verify(&self) -> bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures.
sourcepub fn derive_key(&self) -> bool
pub fn derive_key(&self) -> bool
Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.
sourcepub fn no_restrictions(&self) -> bool
pub fn no_restrictions(&self) -> bool
Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage
.
source§impl KeyModesOfUse
impl KeyModesOfUse
sourcepub fn builder() -> KeyModesOfUseBuilder
pub fn builder() -> KeyModesOfUseBuilder
Creates a new builder-style object to manufacture KeyModesOfUse
.
Trait Implementations§
source§impl Clone for KeyModesOfUse
impl Clone for KeyModesOfUse
source§fn clone(&self) -> KeyModesOfUse
fn clone(&self) -> KeyModesOfUse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyModesOfUse
impl Debug for KeyModesOfUse
source§impl PartialEq for KeyModesOfUse
impl PartialEq for KeyModesOfUse
source§fn eq(&self, other: &KeyModesOfUse) -> bool
fn eq(&self, other: &KeyModesOfUse) -> bool
self
and other
values to be equal, and is used
by ==
.