From 9003ff13acc7011b114e873e27f003269d7e01a7 Mon Sep 17 00:00:00 2001 From: "T.Elias" Date: Thu, 14 Dec 2023 15:25:28 +0100 Subject: [PATCH] simple text fixes --- .../java/org/jpos/security/BaseSMAdapter.java | 2 +- .../java/org/jpos/security/SKDMethod.java | 51 ++++++++++--------- .../jceadapter/JCESecurityModule.java | 2 +- 3 files changed, 28 insertions(+), 27 deletions(-) diff --git a/jpos/src/main/java/org/jpos/security/BaseSMAdapter.java b/jpos/src/main/java/org/jpos/security/BaseSMAdapter.java index 9ffb30369c..8c2f2c788b 100644 --- a/jpos/src/main/java/org/jpos/security/BaseSMAdapter.java +++ b/jpos/src/main/java/org/jpos/security/BaseSMAdapter.java @@ -2035,7 +2035,7 @@ protected boolean verifyCVC3Impl(T imkcvc3, String accountNo, String acctSeqNo, * @param atc * @param upn * @param txnData - * @return true if ARQC/TC/AAC is falid or false if not + * @return true if ARQC/TC/AAC is valid or false if not * @throws SMException */ protected boolean verifyARQCImpl(MKDMethod mkdm, SKDMethod skdm, T imkac diff --git a/jpos/src/main/java/org/jpos/security/SKDMethod.java b/jpos/src/main/java/org/jpos/security/SKDMethod.java index 8cac51fd34..f3d6ec053b 100644 --- a/jpos/src/main/java/org/jpos/security/SKDMethod.java +++ b/jpos/src/main/java/org/jpos/security/SKDMethod.java @@ -32,33 +32,34 @@ */ public enum SKDMethod { - /** - * Visa Smart Debit/Credit or UKIS in England - *
- * Described in Visa Integrated Circuit Card - * Specification (VIS) Version 1.5 - May 2009, section B.4 - */ - VSDC + /** + * Visa Smart Debit/Credit or UKIS in England + *
+ * Described in Visa Integrated Circuit Card + * Specification (VIS) Version 1.5 - May 2009, section B.4 + */ + VSDC, - /** - * MasterCard Proprietary SKD method - */ - ,MCHIP - /** - * American Express - */ - ,AEPIS_V40 + /** + * MasterCard Proprietary SKD method + */ + MCHIP, - /** - * EMV Common Session Key Derivation Method - * Described in EMV v4.2 Book 2 - June 2008, Annex A1.3 - */ - ,EMV_CSKD + /** + * American Express + */ + AEPIS_V40, - /** - * EMV2000 Session Key Method - * Described in EMV 2000 v4.0 Book 2 - December 2000, Annex A1.3 - */ - ,EMV2000_SKM + /** + * EMV Common Session Key Derivation Method + * Described in EMV v4.2 Book 2 - June 2008, Annex A1.3 + */ + EMV_CSKD, + + /** + * EMV2000 Session Key Method + * Described in EMV 2000 v4.0 Book 2 - December 2000, Annex A1.3 + */ + EMV2000_SKM, } diff --git a/jpos/src/main/java/org/jpos/security/jceadapter/JCESecurityModule.java b/jpos/src/main/java/org/jpos/security/jceadapter/JCESecurityModule.java index f549971426..a3af01a959 100644 --- a/jpos/src/main/java/org/jpos/security/jceadapter/JCESecurityModule.java +++ b/jpos/src/main/java/org/jpos/security/jceadapter/JCESecurityModule.java @@ -675,7 +675,7 @@ private static byte[] preparePANPSN(String pan, String psn){ * * @param pan application primary account number * @param psn PAN Sequence Number - * @return 8-bytes representing first 16 digits + * @return 8-bytes representing rightmost 16 digits */ private static byte[] formatPANPSNOptionA(String pan, String psn){ if ( pan.length() < 14 )