openapi: 3.0.0
info:
version: '2021-09-14'
x-release: v4
title: 'Payment Cryptography Control Plane #X Amz Target=PaymentCryptographyControlPlane.CreateAlias #X Amz Target=PaymentCryptographyControlPlane.CreateAlias #X Amz Target=PaymentCryptographyControlPlane.ImportKey API'
description: <p>You use the Amazon Web Services Payment Cryptography Control Plane to manage the encryption keys you use for payment-related cryptographic operations. You can create, import, export, share, manage, and delete keys. You can also manage Identity and Access Management (IAM) policies for keys. For more information, see <a href="https://docs.aws.amazon.com/payment-cryptography/latest/userguide/security-iam.html">Identity and access management</a> in the <i>Amazon Web Services Payment Cryptography User Guide.</i> </p> <p>To use encryption keys for payment-related transaction processing and associated cryptographic operations, you use the <a href="https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/Welcome.html">Amazon Web Services Payment Cryptography Data Plane</a>. You can encrypt, decrypt, generate, verify, and translate payment-related cryptographic operations. </p> <p>All Amazon Web Services Payment Cryptography API calls must be signed and transmitted using Transport Layer Security (TLS). We recommend you always use the latest supported TLS version for logging API requests. </p> <p>Amazon Web Services Payment Cryptography supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web Services account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to Amazon Web Services Payment Cryptography, who made the request, when it was made, and so on. If you don't configure a trail, you can still view the most recent events in the CloudTrail console. For more information, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/">CloudTrail User Guide</a>.</p>
x-logo:
url: https://twitter.com/awscloud/profile_image?size=original
backgroundColor: '#FFFFFF'
termsOfService: https://aws.amazon.com/service-terms/
contact:
name: Mike Ralphson
email: mike.ralphson@gmail.com
url: https://github.com/mermade/aws2openapi
x-twitter: PermittedSoc
license:
name: Apache 2.0 License
url: http://www.apache.org/licenses/
x-providerName: amazonaws.com
x-serviceName: payment-cryptography
x-aws-signingName: payment-cryptography
x-origin:
- contentType: application/json
url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/payment-cryptography-2021-09-14.normal.json
converter:
url: https://github.com/mermade/aws2openapi
version: 1.0.0
x-apisguru-driver: external
x-apiClientRegistration:
url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct
x-apisguru-categories:
- cloud
x-preferred: true
servers:
- url: http://controlplane.payment-cryptography.{region}.amazonaws.com
variables:
region:
description: The AWS region
enum:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- us-gov-west-1
- us-gov-east-1
- ca-central-1
- eu-north-1
- eu-west-1
- eu-west-2
- eu-west-3
- eu-central-1
- eu-south-1
- af-south-1
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
- ap-southeast-1
- ap-southeast-2
- ap-east-1
- ap-south-1
- sa-east-1
- me-south-1
default: us-east-1
description: The Payment Cryptography Control Plane multi-region endpoint
- url: https://controlplane.payment-cryptography.{region}.amazonaws.com
variables:
region:
description: The AWS region
enum:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- us-gov-west-1
- us-gov-east-1
- ca-central-1
- eu-north-1
- eu-west-1
- eu-west-2
- eu-west-3
- eu-central-1
- eu-south-1
- af-south-1
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
- ap-southeast-1
- ap-southeast-2
- ap-east-1
- ap-south-1
- sa-east-1
- me-south-1
default: us-east-1
description: The Payment Cryptography Control Plane multi-region endpoint
- url: http://controlplane.payment-cryptography.{region}.amazonaws.com.cn
variables:
region:
description: The AWS region
enum:
- cn-north-1
- cn-northwest-1
default: cn-north-1
description: The Payment Cryptography Control Plane endpoint for China (Beijing) and China (Ningxia)
- url: https://controlplane.payment-cryptography.{region}.amazonaws.com.cn
variables:
region:
description: The AWS region
enum:
- cn-north-1
- cn-northwest-1
default: cn-north-1
description: The Payment Cryptography Control Plane endpoint for China (Beijing) and China (Ningxia)
security:
- hmac: []
tags:
- name: '#X Amz Target=PaymentCryptographyControlPlane.ImportKey'
paths:
/#X-Amz-Target=PaymentCryptographyControlPlane.ImportKey:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
post:
operationId: ImportKey
description: '<p>Imports keys and public key certificates into Amazon Web Services Payment Cryptography.</p> <p>Amazon Web Services Payment Cryptography simplifies main or root key exchange process by eliminating the need of a paper-based key exchange process. It takes a modern and secure approach based of the ANSI X9 TR-34 key exchange standard. </p> <p>You can use <code>ImportKey</code> to import main or root keys such as KEK (Key Encryption Key) using asymmetric key exchange technique following the ANSI X9 TR-34 standard. The ANSI X9 TR-34 standard uses asymmetric keys to establishes bi-directional trust between the two parties exchanging keys. </p> <p>After you have imported a main or root key, you can import working keys to perform various cryptographic operations within Amazon Web Services Payment Cryptography using the ANSI X9 TR-31 symmetric key exchange standard as mandated by PCI PIN.</p> <p>You can also import a <i>root public key certificate</i>, a self-signed certificate used to sign other public key certificates, or a <i>trusted public key certificate</i> under an already established root public key certificate. </p> <p> <b>To import a public root key certificate</b> </p> <p>Using this operation, you can import the public component (in PEM cerificate format) of your private root key. You can use the imported public root key certificate for digital signatures, for example signing wrapping key or signing key in TR-34, within your Amazon Web Services Payment Cryptography account. </p> <p>Set the following parameters:</p> <ul> <li> <p> <code>KeyMaterial</code>: <code>RootCertificatePublicKey</code> </p> </li> <li> <p> <code>KeyClass</code>: <code>PUBLIC_KEY</code> </p> </li> <li> <p> <code>KeyModesOfUse</code>: <code>Verify</code> </p> </li> <li> <p> <code>KeyUsage</code>: <code>TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE</code> </p> </li> <li> <p> <code>PublicKeyCertificate</code>: The certificate authority used to sign the root public key certificate.</p> </li> </ul> <p> <b>To import a trusted public key certificate</b> </p> <p>The root public key certificate must be in place and operational before you import a trusted public key certificate. Set the following parameters:</p> <ul> <li> <p> <code>KeyMaterial</code>: <code>TrustedCertificatePublicKey</code> </p> </li> <li> <p> <code>CertificateAuthorityPublicKeyIdentifier</code>: <code>KeyArn</code> of the <code>RootCertificatePublicKey</code>.</p> </li> <li> <p> <code>KeyModesOfUse</code> and <code>KeyUsage</code>: Corresponding to the cryptographic operations such as wrap, sign, or encrypt that you will allow the trusted public key certificate to perform.</p> </li> <li> <p> <code>PublicKeyCertificate</code>: The certificate authority used to sign the trusted public key certificate.</p> </li> </ul> <p> <b>Import main keys</b> </p> <p>Amazon Web Services Payment Cryptography uses TR-34 asymmetric key exchange standard to import main keys such as KEK. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Host (KRH). During the key import process, KDH is the user who initiates the key import and KRH is Amazon Web Services Payment Cryptography who receives the key. Before initiating TR-34 key import, you must obtain an import token by calling <a>GetParametersForImport</a>. This operation also returns the wrapping key certificate that KDH uses wrap key under import to generate a TR-34 wrapped key block. The import token expires after 7 days.</p> <p>Set the following parameters:</p> <ul> <li> <p> <code>CertificateAuthorityPublicKeyIdentifier</code>: The <code>KeyArn</code> of the certificate chain that will sign the signing key certificate and should exist within Amazon Web Services Payment Cryptography before initiating TR-34 key import. If it does not exist, you can import it by calling by calling <code>ImportKey</code> for <code>RootCertificatePublicKey</code>.</p> </li> <li> <p> <code>ImportToken</code>: Obtained from KRH by calling <a>GetParametersForImport</a>.</p> </li> <li> <p> <code>WrappedKeyBlock</code>: The TR-34 wrapped key block from KDH. It contains the KDH key under import, wrapped with KRH provided wrapping key certificate and signed by the KDH private signing key. This TR-34 key block is generated by the KDH Hardware Security Module (HSM) outside of Amazon Web Services Payment Cryptography.</p> </li> <li> <p> <code>SigningKeyCertificate</code>: The public component of the private key that signed the KDH TR-34 wrapped key block. In PEM certificate format.</p> </li> </ul> <note> <p>TR-34 is intended primarily to exchange 3DES keys. Your ability to export AES-128 and larger AES keys may be dependent on your source system.</p> </note> <p> <b>Import working keys</b> </p> <p>Amazon Web Services Payment Cryptography uses TR-31 symmetric key exchange standard to import working keys. A KEK must be established within Amazon Web Services Payment Cryptography by using TR-34 key import. To initiate a TR-31 key import, set the following parameters:</p> <ul> <li> <p> <code>WrappedKeyBlock</code>: The key under import and encrypted using KEK. The TR-31 key block generated by your HSM outside of Amazon Web Services Payment Cryptography. </p> </li> <li> <p> <code>WrappingKeyIdentifier</code>: The <code>KeyArn</code> of the KEK that Amazon Web Services Payment Cryptography uses to decrypt or unwrap the key under import.</p> </li> </ul> <p> <b>Cross-account use:</b> This operation can''t be used across different Amazon Web Services accounts.</p> <p> <b>Related operations:</b> </p> <ul> <li> <p> <a>ExportKey</a> </p> </li> <li> <p> <a>GetParametersForImport</a> </p> </li> </ul>'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ImportKeyOutput'
examples:
ImportKey200Example:
summary: Default ImportKey 200 response
x-microcks-default: true
value:
Key: example-string
'480':
description: ServiceQuotaExceededException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceQuotaExceededException'
'481':
description: ServiceUnavailableException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceUnavailableException'
'482':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
'483':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'484':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'485':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'486':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
'487':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ImportKeyInput'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- PaymentCryptographyControlPlane.ImportKey
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
summary: Amazon Payment Cryptography Import Key
tags:
- '#X Amz Target=PaymentCryptographyControlPlane.ImportKey'
components:
schemas:
Tr34WrappedKeyBlock:
type: string
pattern: ^[0-9A-F]+$
minLength: 2
maxLength: 4096
KeyState:
type: string
enum:
- CREATE_IN_PROGRESS
- CREATE_COMPLETE
- DELETE_PENDING
- DELETE_COMPLETE
description: Defines the state of a key
KeyCheckValue:
type: string
pattern: ^[0-9a-fA-F]+$
minLength: 4
maxLength: 16
KeyAlgorithm:
type: string
enum:
- TDES_2KEY
- TDES_3KEY
- AES_128
- AES_192
- AES_256
- RSA_2048
- RSA_3072
- RSA_4096
KeyArnOrKeyAliasType:
type: string
pattern: ^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$
minLength: 7
maxLength: 322
InternalServerException: {}
ThrottlingException: {}
ServiceUnavailableException: {}
ImportTokenId:
type: string
pattern: ^import-token-[0-9a-zA-Z]{16,64}$
TagValue:
type: string
minLength: 0
maxLength: 256
Tag:
type: object
required:
- Key
properties:
Key:
allOf:
- $ref: '#/components/schemas/TagKey'
- description: The key of the tag.
Value:
allOf:
- $ref: '#/components/schemas/TagValue'
- description: The value of the tag.
description: A structure that contains information about a tag.
Boolean:
type: boolean
Tr31WrappedKeyBlock:
type: string
pattern: ^[0-9A-Z]+$
minLength: 56
maxLength: 9984
ImportKeyOutput:
type: object
required:
- Key
properties:
Key:
allOf:
- $ref: '#/components/schemas/Key'
- description: The <code>KeyARN</code> of the key material imported within Amazon Web Services Payment Cryptography.
KeyArn:
type: string
pattern: ^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}$
minLength: 70
maxLength: 150
ConflictException: {}
ImportKeyInput:
type: object
required:
- KeyMaterial
title: ImportKeyInput
properties:
Enabled:
allOf:
- $ref: '#/components/schemas/Boolean'
- description: Specifies whether import key is enabled.
KeyCheckValueAlgorithm:
allOf:
- $ref: '#/components/schemas/KeyCheckValueAlgorithm'
- description: <p>The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.</p> <p>For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.</p>
KeyMaterial:
allOf:
- $ref: '#/components/schemas/ImportKeyMaterial'
- description: The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.
Tags:
allOf:
- $ref: '#/components/schemas/Tags'
- description: <p>The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. </p> <p>You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.</p> <p>To use this parameter, you must have <code>TagResource</code> permission.</p> <important> <p>Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p> </important> <note> <p>Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.</p> </note>
ImportKeyMaterial:
type: object
properties:
RootCertificatePublicKey:
allOf:
- $ref: '#/components/schemas/RootCertificatePublicKey'
- description: Parameter information for root public key certificate import.
Tr31KeyBlock:
allOf:
- $ref: '#/components/schemas/ImportTr31KeyBlock'
- description: Parameter information for key material import using TR-31 standard.
Tr34KeyBlock:
allOf:
- $ref: '#/components/schemas/ImportTr34KeyBlock'
- description: Parameter information for key material import using TR-34 standard.
TrustedCertificatePublicKey:
allOf:
- $ref: '#/components/schemas/TrustedCertificatePublicKey'
- description: Parameter information for trusted public key certificate import.
description: Parameter information for key material import.
ImportTr31KeyBlock:
type: object
required:
- WrappedKeyBlock
- WrappingKeyIdentifier
properties:
WrappedKeyBlock:
allOf:
- $ref: '#/components/schemas/Tr31WrappedKeyBlock'
- description: The TR-34 wrapped key block to import.
WrappingKeyIdentifier:
allOf:
- $ref: '#/components/schemas/KeyArnOrKeyAliasType'
- description: The <code>KeyARN</code> of the key that will decrypt or unwrap a TR-31 key block during import.
description: Parameter information for key material import using TR-31 standard.
KeyAttributes:
type: object
required:
- KeyAlgorithm
- KeyClass
- KeyModesOfUse
- KeyUsage
properties:
KeyAlgorithm:
allOf:
- $ref: '#/components/schemas/KeyAlgorithm'
- description: <p>The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.</p> <p>For symmetric keys, Amazon Web Services Payment Cryptography supports <code>AES</code> and <code>TDES</code> algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports <code>RSA</code> and <code>ECC_NIST</code> algorithms.</p>
KeyClass:
allOf:
- $ref: '#/components/schemas/KeyClass'
- description: 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.
KeyModesOfUse:
allOf:
- $ref: '#/components/schemas/KeyModesOfUse'
- description: The list of cryptographic operations that you can perform using the key.
KeyUsage:
allOf:
- $ref: '#/components/schemas/KeyUsage'
- description: The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.
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.
ServiceQuotaExceededException: {}
KeyCheckValueAlgorithm:
type: string
enum:
- CMAC
- ANSI_X9_24
KeyClass:
type: string
enum:
- SYMMETRIC_KEY
- ASYMMETRIC_KEY_PAIR
- PRIVATE_KEY
- PUBLIC_KEY
CertificateType:
type: string
pattern: ^[^\[;\]<>]+$
minLength: 1
maxLength: 32768
format: password
Key:
type: object
required:
- CreateTimestamp
- Enabled
- Exportable
- KeyArn
- KeyAttributes
- KeyCheckValue
- KeyCheckValueAlgorithm
- KeyOrigin
- KeyState
properties:
CreateTimestamp:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The date and time when the key was created.
DeletePendingTimestamp:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when <code>KeyState</code> is <code>DELETE_PENDING</code> and the key is scheduled for deletion.
DeleteTimestamp:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when when the <code>KeyState</code> is <code>DELETE_COMPLETE</code> and the Amazon Web Services Payment Cryptography key is deleted.
Enabled:
allOf:
- $ref: '#/components/schemas/Boolean'
- description: 'Specifies whether the key is enabled. '
Exportable:
allOf:
- $ref: '#/components/schemas/Boolean'
- description: Specifies whether the key is exportable. This data is immutable after the key is created.
KeyArn:
allOf:
- $ref: '#/components/schemas/KeyArn'
- description: The Amazon Resource Name (ARN) of the key.
KeyAttributes:
allOf:
- $ref: '#/components/schemas/KeyAttributes'
- 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.
KeyCheckValue:
allOf:
- $ref: '#/components/schemas/KeyCheckValue'
- description: The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.
KeyCheckValueAlgorithm:
allOf:
- $ref: '#/components/schemas/KeyCheckValueAlgorithm'
- description: The algorithm used for calculating key check value (KCV) for DES and AES keys. For a DES key, Amazon Web Services Payment Cryptography computes the KCV by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For an AES key, Amazon Web Services Payment Cryptography computes the KCV by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
KeyOrigin:
allOf:
- $ref: '#/components/schemas/KeyOrigin'
- description: The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value is <code>AWS_PAYMENT_CRYPTOGRAPHY</code>. For keys imported into Amazon Web Services Payment Cryptography, the value is <code>EXTERNAL</code>.
KeyState:
allOf:
- $ref: '#/components/schemas/KeyState'
- description: The state of key that is being created or deleted.
UsageStartTimestamp:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The date and time after which Amazon Web Services Payment Cryptography will start using the key material for cryptographic operations.
UsageStopTimestamp:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for cryptographic operations.
description: Metadata about an Amazon Web Services Payment Cryptography key.
TrustedCertificatePublicKey:
type: object
required:
- CertificateAuthorityPublicKeyIdentifier
- KeyAttributes
- PublicKeyCertificate
properties:
CertificateAuthorityPublicKeyIdentifier:
allOf:
- $ref: '#/components/schemas/KeyArnOrKeyAliasType'
- description: The <code>KeyARN</code> of the root public key certificate or certificate chain that signs the trusted public key certificate import.
KeyAttributes:
allOf:
- $ref: '#/components/schemas/KeyAttributes'
- description: The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after a trusted public key is imported.
PublicKeyCertificate:
allOf:
- $ref: '#/components/schemas/CertificateType'
- description: Parameter information for trusted public key certificate import.
description: Parameter information for trusted public key certificate import.
Tr34KeyBlockFormat:
type: string
enum:
- X9_TR34_2012
KeyOrigin:
type: string
enum:
- EXTERNAL
- AWS_PAYMENT_CRYPTOGRAPHY
description: Defines the source of a key
ResourceNotFoundException: {}
KeyUsage:
type: string
enum:
- TR31_B0_BASE_DERIVATION_KEY
- TR31_C0_CARD_VERIFICATION_KEY
- TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY
- TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION
- TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS
- TR31_E1_EMV_MKEY_CONFIDENTIALITY
- TR31_E2_EMV_MKEY_INTEGRITY
- TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS
- TR31_E5_EMV_MKEY_CARD_PERSONALIZATION
- TR31_E6_EMV_MKEY_OTHER
- TR31_K0_KEY_ENCRYPTION_KEY
- TR31_K1_KEY_BLOCK_PROTECTION_KEY
- TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT
- TR31_M3_ISO_9797_3_MAC_KEY
- TR31_M6_ISO_9797_5_CMAC_KEY
- TR31_M7_HMAC_KEY
- TR31_P0_PIN_ENCRYPTION_KEY
- TR31_P1_PIN_GENERATION_KEY
- TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE
- TR31_V1_IBM3624_PIN_VERIFICATION_KEY
- TR31_V2_VISA_PIN_VERIFICATION_KEY
- TR31_K2_TR34_ASYMMETRIC_KEY
AccessDeniedException: {}
HexLength16:
type: string
pattern: ^[0-9A-F]+$
minLength: 16
maxLength: 16
Tags:
type: array
items:
$ref: '#/components/schemas/Tag'
minItems: 0
maxItems: 200
KeyModesOfUse:
type: object
properties:
Decrypt:
allOf:
- $ref: '#/components/schemas/PrimitiveBoolean'
- description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data.
DeriveKey:
allOf:
- $ref: '#/components/schemas/PrimitiveBoolean'
- description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.
Encrypt:
allOf:
- $ref: '#/components/schemas/PrimitiveBoolean'
- description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.
Generate:
allOf:
- $ref: '#/components/schemas/PrimitiveBoolean'
- description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys.
NoRestrictions:
allOf:
- $ref: '#/components/schemas/PrimitiveBoolean'
- description: Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by <code>KeyUsage</code>.
Sign:
allOf:
- $ref: '#/components/schemas/PrimitiveBoolean'
- description: Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing.
Unwrap:
allOf:
- $ref: '#/components/schemas/PrimitiveBoolean'
- description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.
Verify:
allOf:
- $ref: '#/components/schemas/PrimitiveBoolean'
- description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures.
Wrap:
allOf:
- $ref: '#/components/schemas/PrimitiveBoolean'
- description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.
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.
Timestamp:
type: string
format: date-time
ValidationException: {}
ImportTr34KeyBlock:
type: object
required:
- CertificateAuthorityPublicKeyIdentifier
- ImportToken
- KeyBlockFormat
- SigningKeyCertificate
- WrappedKeyBlock
properties:
CertificateAuthorityPublicKeyIdentifier:
allOf:
- $ref: '#/components/schemas/KeyArnOrKeyAliasType'
- description: The <code>KeyARN</code> of the certificate chain that signs the signing key certificate during TR-34 key import.
ImportToken:
allOf:
- $ref: '#/components/schemas/ImportTokenId'
- description: The import token that initiates key import into Amazon Web Services Payment Cryptography. It expires after 7 days. You can use the same import token to import multiple keys to the same service account.
KeyBlockFormat:
allOf:
- $ref: '#/components/schemas/Tr34KeyBlockFormat'
- description: The key block format to use during key import. The only value allowed is <code>X9_TR34_2012</code>.
RandomNonce:
allOf:
- $ref: '#/components/schemas/HexLength16'
- description: A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass.
SigningKeyCertificate:
allOf:
- $ref: '#/components/schemas/CertificateType'
- description: The public key component in PEM certificate format of the private key that signs the KDH TR-34 wrapped key block.
WrappedKeyBlock:
allOf:
- $ref: '#/components/schemas/Tr34WrappedKeyBlock'
- description: The TR-34 wrapped key block to import.
description: Parameter information for key material import using TR-34 standard.
TagKey:
type: string
minLength: 1
maxLength: 128
PrimitiveBoolean:
type: boolean
RootCertificatePubl
# --- truncated at 32 KB (33 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/amazon-payment-cryptography/refs/heads/main/openapi/amazon-payment-cryptography-x-amz-target-paymentcryptographycontrolplane-importkey-api-openapi.yml