Package | Description |
---|---|
com.cloudpos.pinpad |
This package provides access to functionalities related to the PINPad device.
|
com.cloudpos.pinpad.extend |
This package extends the standard PINPad device functionalities provided in the
com.cloudpos.pinpad package. |
Modifier and Type | Method and Description |
---|---|
byte[] |
PINPadDevice.calculateMac(KeyInfo keyInfo,
int macFlag,
byte[] plain)
Calculates the MAC using the current user key as defined in KeyInfo.
|
byte[] |
PINPadDevice.calculateMac(KeyInfo keyInfo,
int macFlag,
byte[] plain,
int nKeyVar)
Calculates the MAC using the current user key as defined in KeyInfo.
|
byte[] |
PINPadDevice.calculateResponseMac(KeyInfo keyInfo,
byte[] plainData,
int macFlag)
Calculates the MAC (Message Authentication Code) using the TDUKPT method and a response MAC key.
|
int |
PINPadDevice.changePin(KeyInfo keyInfo,
byte[] cardNum,
byte[] pinOld,
byte[] pinNew,
int[] lengthResult,
int timeout)
Changes the user's PIN.
|
int |
PINPadDevice.createPin(KeyInfo keyInfo,
byte[] cardNum,
byte[] pinNew,
int timeout,
int nFlagSound)
Creates a new PIN.
|
byte[] |
PINPadDevice.encryptData(KeyInfo keyInfo,
byte[] plain)
Encrypts data using the specified key.
|
byte[] |
PINPadDevice.encryptData(KeyInfo keyInfo,
byte[] plain,
int mode,
byte[] IV,
int IVLen)
Encrypts data using the user-specified key with additional encryption options.
|
void |
PINPadDevice.listenForPinBlock(KeyInfo keyInfo,
String pan,
boolean voicePrompt,
OperationListener listener,
int timeout)
Listens for user PIN input and calculates the encrypted PIN block asynchronously.
|
void |
PINPadDevice.listenForPinBlock(KeyInfo keyInfo,
String pan,
boolean voicePrompt,
OperationListener listener,
int timeout,
int mode,
byte[] IV)
Asynchronously listens for user PIN input and calculates an encrypted PIN block with a specific mode.
|
void |
PINPadDevice.updateUserKey(int masterKeyID,
int userKeyID,
byte[] cipherNewUserKey,
int checkType,
byte[] checkValue,
KeyInfo keyInfo)
Updates the user key(session key) with additional check value options.
|
boolean |
PINPadDevice.verifyResponseMac(KeyInfo keyInfo,
byte[] plainData,
int macFlag,
byte[] macData,
int nDirection)
Verifies the response MAC.
|
PINPadOperationResult |
PINPadDevice.waitForPinBlock(KeyInfo keyInfo,
String pan,
boolean voicePrompt,
int timeout)
Synchronously waits for user PIN input and calculates the encrypted PIN block.
|
PINPadOperationResult |
PINPadDevice.waitForPinBlock(KeyInfo keyInfo,
String pan,
boolean voicePrompt,
int timeout,
int mode,
byte[] IV)
Synchronously calculates an encrypted PIN block with a specific mode.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
PINPadExtendDevice.decryptData(KeyInfo keyInfo,
byte[] cipherdata,
int mode,
byte[] IV)
Decrypts data using a user-defined key specified in
KeyInfo . |