KeyModesOfUseProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_paymentcryptography as paymentcryptography } from 'aws-cdk-lib';
const keyModesOfUseProperty: paymentcryptography.CfnKey.KeyModesOfUseProperty = {
decrypt: false,
deriveKey: false,
encrypt: false,
generate: false,
noRestrictions: false,
sign: false,
unwrap: false,
verify: false,
wrap: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_paymentcryptography as paymentcryptography
key_modes_of_use_property = paymentcryptography.CfnKey.KeyModesOfUseProperty(
decrypt=False,
derive_key=False,
encrypt=False,
generate=False,
no_restrictions=False,
sign=False,
unwrap=False,
verify=False,
wrap=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.paymentcryptography.*;
KeyModesOfUseProperty keyModesOfUseProperty = KeyModesOfUseProperty.builder()
.decrypt(false)
.deriveKey(false)
.encrypt(false)
.generate(false)
.noRestrictions(false)
.sign(false)
.unwrap(false)
.verify(false)
.wrap(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.PaymentCryptography;
var keyModesOfUseProperty = new KeyModesOfUseProperty {
Decrypt = false,
DeriveKey = false,
Encrypt = false,
Generate = false,
NoRestrictions = false,
Sign = false,
Unwrap = false,
Verify = false,
Wrap = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
keyModesOfUseProperty := &KeyModesOfUseProperty{
Decrypt: jsii.Boolean(false),
DeriveKey: jsii.Boolean(false),
Encrypt: jsii.Boolean(false),
Generate: jsii.Boolean(false),
NoRestrictions: jsii.Boolean(false),
Sign: jsii.Boolean(false),
Unwrap: jsii.Boolean(false),
Verify: jsii.Boolean(false),
Wrap: jsii.Boolean(false),
}
Properties
decryptoptionalboolean | IResolvabledecryptoptionaltyping.Union[bool, IResolvable]decryptoptionalBooleanDecryptoptionalboolDecryptoptionalinterface{} = false #Specifies whether an AWS Payment Cryptography key can be used to decrypt data.
deriveKeyoptionalboolean | IResolvablederive_keyoptionaltyping.Union[bool, IResolvable]deriveKeyoptionalBooleanDeriveKeyoptionalboolDeriveKeyoptionalinterface{} = false #Specifies whether an AWS Payment Cryptography key can be used to derive new keys.
encryptoptionalboolean | IResolvableencryptoptionaltyping.Union[bool, IResolvable]encryptoptionalBooleanEncryptoptionalboolEncryptoptionalinterface{} = false #Specifies whether an AWS Payment Cryptography key can be used to encrypt data.
generateoptionalboolean | IResolvablegenerateoptionaltyping.Union[bool, IResolvable]generateoptionalBooleanGenerateoptionalboolGenerateoptionalinterface{} = false #Specifies whether an AWS Payment Cryptography key can be used to generate and verify other card and PIN verification keys.
noRestrictionsoptionalboolean | IResolvableno_restrictionsoptionaltyping.Union[bool, IResolvable]noRestrictionsoptionalBooleanNoRestrictionsoptionalboolNoRestrictionsoptionalinterface{} = false #Specifies whether an AWS Payment Cryptography key has no special restrictions other than the restrictions implied by `KeyUsage` .
signoptionalboolean | IResolvablesignoptionaltyping.Union[bool, IResolvable]signoptionalBooleanSignoptionalboolSignoptionalinterface{} = false #Specifies whether an AWS Payment Cryptography key can be used for signing.
unwrapoptionalboolean | IResolvableunwrapoptionaltyping.Union[bool, IResolvable]unwrapoptionalBooleanUnwrapoptionalboolUnwrapoptionalinterface{} = false #verifyoptionalboolean | IResolvableverifyoptionaltyping.Union[bool, IResolvable]verifyoptionalBooleanVerifyoptionalboolVerifyoptionalinterface{} = false #Specifies whether an AWS Payment Cryptography key can be used to verify signatures.
wrapoptionalboolean | IResolvablewrapoptionaltyping.Union[bool, IResolvable]wrapoptionalBooleanWrapoptionalboolWrapoptionalinterface{} = false #Specifies whether an AWS Payment Cryptography key can be used to wrap other keys.