Skip to content

Commit

Permalink
Provides missing signatures removed by previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalaman committed Feb 19, 2015
1 parent 6e0726a commit d60751f
Showing 1 changed file with 39 additions and 7 deletions.
46 changes: 39 additions & 7 deletions jpos/src/main/java/org/jpos/security/BaseSMAdapter.java
Expand Up @@ -816,7 +816,7 @@ public boolean verifyCVC3(SecureDESKey imkcvc3, String accountNo, String acctSeq
LogEvent evt = new LogEvent(this, "s-m-operation");
evt.addMessage(new SimpleMsg("command", "Verify CVC3", cmdParameters));
try {
boolean r = verifyCVC3Impl( imkcvc3, accountNo, acctSeqNo, atc, upn, data, mkdm, cvc3);
boolean r = verifyCVC3Impl(imkcvc3, accountNo, acctSeqNo, atc, upn, data, mkdm, cvc3);
evt.addMessage(new SimpleMsg("result", "Verification status", r ? "valid" : "invalid"));
return r;
} catch (Exception e) {
Expand Down Expand Up @@ -846,7 +846,7 @@ public boolean verifyARQC(MKDMethod mkdm, SKDMethod skdm, SecureDESKey imkac
LogEvent evt = new LogEvent(this, "s-m-operation");
evt.addMessage(new SimpleMsg("command", "Verify ARQC/TC/AAC", cmdParameters));
try {
boolean r = verifyARQCImpl( mkdm, skdm, imkac, accoutNo, acctSeqNo, arqc, atc, upn, transData);
boolean r = verifyARQCImpl(mkdm, skdm, imkac, accoutNo, acctSeqNo, arqc, atc, upn, transData);
evt.addMessage(new SimpleMsg("result", "Verification status", r ? "valid" : "invalid"));
return r;
} catch (Exception e) {
Expand Down Expand Up @@ -880,8 +880,8 @@ public byte[] generateARPC(MKDMethod mkdm, SKDMethod skdm, SecureDESKey imkac
LogEvent evt = new LogEvent(this, "s-m-operation");
evt.addMessage(new SimpleMsg("command", "Genarate ARPC", cmdParameters));
try {
byte[] result = generateARPCImpl( mkdm, skdm, imkac, accoutNo, acctSeqNo
,arqc, atc, upn, arpcMethod, arc, propAuthData );
byte[] result = generateARPCImpl(mkdm, skdm, imkac, accoutNo, acctSeqNo
, arqc, atc, upn, arpcMethod, arc, propAuthData);
evt.addMessage(new SimpleMsg("result", "Generated ARPC", result));
return result;
} catch (Exception e) {
Expand Down Expand Up @@ -916,8 +916,8 @@ public byte[] verifyARQCGenerateARPC(MKDMethod mkdm, SKDMethod skdm, SecureDESKe
LogEvent evt = new LogEvent(this, "s-m-operation");
evt.addMessage(new SimpleMsg("command", "Genarate ARPC", cmdParameters));
try {
byte[] result = verifyARQCGenerateARPCImpl( mkdm, skdm, imkac, accoutNo,
acctSeqNo, arqc, atc, upn, transData, arpcMethod, arc, propAuthData );
byte[] result = verifyARQCGenerateARPCImpl(mkdm, skdm, imkac, accoutNo,
acctSeqNo, arqc, atc, upn, transData, arpcMethod, arc, propAuthData);
evt.addMessage(new SimpleMsg("result", "ARPC", result == null ? "" : ISOUtil.hexString(result)));
return result;
} catch (Exception e) {
Expand Down Expand Up @@ -946,7 +946,7 @@ public byte[] generateSM_MAC(MKDMethod mkdm, SKDMethod skdm
LogEvent evt = new LogEvent(this, "s-m-operation");
evt.addMessage(new SimpleMsg("command", "Generate Secure Messaging MAC", cmdParameters));
try {
byte[] mac = generateSM_MACImpl( mkdm, skdm, imksmi, accountNo, acctSeqNo, atc, arqc, data);
byte[] mac = generateSM_MACImpl(mkdm, skdm, imksmi, accountNo, acctSeqNo, atc, arqc, data);
evt.addMessage(new SimpleMsg("result", "Generated MAC", mac!=null ? ISOUtil.hexString(mac) : ""));
return mac;
} catch (Exception e) {
Expand Down Expand Up @@ -1177,23 +1177,55 @@ protected EncryptedPIN translatePINImpl (EncryptedPIN pinUnderKd1, SecureDESKey

/**
* Your SMAdapter should override this method if it has this functionality
* @deprecated
* @param pinUnderDuk
* @param ksn
* @param bdk
* @return imported pin
* @throws SMException
*/
protected EncryptedPIN importPINImpl (EncryptedPIN pinUnderDuk, KeySerialNumber ksn,
SecureDESKey bdk) throws SMException {
return importPINImpl(pinUnderDuk,ksn,bdk,false);
}

/**
* Your SMAdapter should override this method if it has this functionality
* @param pinUnderDuk
* @param ksn
* @param bdk
* @param tdes
* @return imported pin
* @throws SMException
*/
protected EncryptedPIN importPINImpl (EncryptedPIN pinUnderDuk, KeySerialNumber ksn,
SecureDESKey bdk, boolean tdes) throws SMException {
throw new SMException("Operation not supported in: " + this.getClass().getName());
}

/**
* Your SMAdapter should override this method if it has this functionality
* @deprecated
* @param pinUnderDuk
* @param ksn
* @param bdk
* @param kd2
* @param destinationPINBlockFormat
* @return translated pin
* @throws SMException
*/
protected EncryptedPIN translatePINImpl (EncryptedPIN pinUnderDuk, KeySerialNumber ksn,
SecureDESKey bdk, SecureDESKey kd2, byte destinationPINBlockFormat) throws SMException {
return translatePINImpl(pinUnderDuk,ksn,bdk,kd2,destinationPINBlockFormat,false);
}

/**
* Your SMAdapter should override this method if it has this functionality
* @param pinUnderDuk
* @param ksn
* @param bdk
* @param kd2
* @param tdes
* @param destinationPINBlockFormat
* @return translated pin
* @throws SMException
Expand Down

0 comments on commit d60751f

Please sign in to comment.