com.bankframe.services.devices.MTPinPad
Class PinDataBlock
java.lang.Object
com.bankframe.services.devices.MTPinPad.PinDataBlock
public class PinDataBlock
- extends Object
This class is used to handle the PIN number retrieved from
the physical device
|
Field Summary |
byte[] |
theRawAsciiData
The encrypted data received from the physical device |
|
Constructor Summary |
PinDataBlock(byte[] cardPinEntryResponse,
String accountNumber,
boolean bPinBlockFormatAnsi98,
int pinLength)
Constructor |
theRawAsciiData
public byte[] theRawAsciiData
- The encrypted data received from the physical device
PinDataBlock
public PinDataBlock(byte[] cardPinEntryResponse,
String accountNumber,
boolean bPinBlockFormatAnsi98,
int pinLength)
throws DeviceException
- Constructor
- Parameters:
cardPinEntryResponse - The encrypted bytesaccountNumber - the account number which is used in the IntelliPIN encryption process.bPinBlockFormatAnsi98 - Indicates if the PIN is formatted according to the ANSI98 standardpinLength - Number of digits in the PIN
- Throws:
DeviceException
decrypt
public int decrypt(SecretKey masterKey,
String algorithm,
String provider)
throws DeviceException
- This method decrypts the PIN Number
- Parameters:
masterKey - is the Encryption key to use in decryptionalgorithm - is the name of the Encryption algorithm, e.g. "DES/ECB/NoPadding"provider - is the name of the provider to use, e.g. "SunJCE"
- Returns:
- int PIN number.
- Throws:
DeviceException - if the PIN Number could not be decrypted
Copyright © 2005, 2007, Oracle. All rights reserved.