verify_pin_data
¶
verify_pin_data(
verification_key_identifier: KeyArnOrKeyAliasType,
encryption_key_identifier: KeyArnOrKeyAliasType,
verification_attributes: PinVerificationAttributes,
encrypted_pin_block: EncryptedPinBlockType,
pin_block_format: PinBlockFormatForPinData,
*,
config_overrides: Optional[PaymentCryptographyDataClientConfig] = None,
primary_account_number: Optional[PrimaryAccountNumberType] = None,
pin_data_length: Optional[IntegerRangeBetween4And12] = None,
dukpt_attributes: Optional[DukptAttributes] = None,
encryption_wrapped_key: Optional[WrappedKey] = None,
) -> VerifyPinDataOutput
Verifies pin-related data such as PIN and PIN Offset using algorithms including VISA PVV and IBM3624. For more information, see Verify PIN data in the Amazon Web Services Payment Cryptography User Guide.
This operation verifies PIN data for user payment card. A card holder PIN data is never transmitted in clear to or from Amazon Web Services Payment Cryptography. This operation uses PIN Verification Key (PVK) for PIN or PIN Offset generation and then encrypts it using PIN Encryption Key (PEK) to create an EncryptedPinBlock for transmission from Amazon Web Services Payment Cryptography.
For information about valid keys for this operation, see Understanding key attributes and Key types for specific data operations in the Amazon Web Services Payment Cryptography User Guide.
Cross-account use: This operation supports cross-account use when the key has a resource-based policy that grants access. For more information, see Resource-based policies.
Related operations:
Parameters:
-
verification_key_identifier(KeyArnOrKeyAliasType) –The
keyARNof the PIN verification key. -
encryption_key_identifier(KeyArnOrKeyAliasType) –The
keyARNof the encryption key under which the PIN block data is encrypted. This key type can be PEK or BDK. -
verification_attributes(PinVerificationAttributes) –The attributes and values for PIN data verification.
-
encrypted_pin_block(EncryptedPinBlockType) –The encrypted PIN block data that Amazon Web Services Payment Cryptography verifies.
-
primary_account_number(Optional[PrimaryAccountNumberType], default:None) –The Primary Account Number (PAN), a unique identifier for a payment credit or debit card that associates the card with a specific account holder.
-
pin_block_format(PinBlockFormatForPinData) –The PIN encoding format for pin data generation as specified in ISO 9564. Amazon Web Services Payment Cryptography supports
ISO_Format_0andISO_Format_3.The
ISO_Format_0PIN block format is equivalent to the ANSI X9.8, VISA-1, and ECI-1 PIN block formats. It is similar to a VISA-4 PIN block format. It supports a PIN from 4 to 12 digits in length.The
ISO_Format_3PIN block format is the same asISO_Format_0except that the fill digits are random values from 10 to 15. -
pin_data_length(Optional[IntegerRangeBetween4And12], default:None) –The length of PIN being verified.
-
dukpt_attributes(Optional[DukptAttributes], default:None) –The attributes and values for the DUKPT encrypted PIN block data.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The request was denied due to an invalid resource error.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request was denied due to an invalid request error.
-
VerificationFailedException–This request failed verification.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_payment_cryptography_data/_services/payment_cryptography_data.py
1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 | |