com.bankframe.services.devices.MTPinPad
Class PinDataBlock
java.lang.Object
com.bankframe.services.devices.MTPinPad.PinDataBlock
- public class PinDataBlock
- extends java.lang.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,
java.lang.String accountNumber,
boolean bPinBlockFormatAnsi98,
int pinLength)
Constructor |
|
Method Summary |
int |
decrypt(javax.crypto.SecretKey masterKey,
java.lang.String algorithm,
java.lang.String provider)
This method decrypts the PIN Number |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theRawAsciiData
public byte[] theRawAsciiData
- The encrypted data received from the physical device
PinDataBlock
public PinDataBlock(byte[] cardPinEntryResponse,
java.lang.String accountNumber,
boolean bPinBlockFormatAnsi98,
int pinLength)
throws DeviceException
- Constructor
- Parameters:
cardPinEntryResponse - The encrypted bytesbPinBlockFormatAnsi98 - Indicates if the PIN is formatted according to the ANSI98 standardpinLength - Number of digits in the PIN
- Throws:
DeviceException
decrypt
public int decrypt(javax.crypto.SecretKey masterKey,
java.lang.String algorithm,
java.lang.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 © 2004 Siebel Systems, Inc. All rights reserved.