com.bankframe.services.devices.MTPinPad
Class PinDataBlock

java.lang.Object
  extended bycom.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
 

Field Detail

theRawAsciiData

public byte[] theRawAsciiData
The encrypted data received from the physical device

Constructor Detail

PinDataBlock

public PinDataBlock(byte[] cardPinEntryResponse,
                    java.lang.String accountNumber,
                    boolean bPinBlockFormatAnsi98,
                    int pinLength)
             throws DeviceException
Constructor

Parameters:
cardPinEntryResponse - The encrypted bytes
bPinBlockFormatAnsi98 - Indicates if the PIN is formatted according to the ANSI98 standard
pinLength - Number of digits in the PIN
Throws:
DeviceException
Method Detail

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 decryption
algorithm - 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.