Package | Description |
---|---|
com.cloudpos |
Provides the basic interface and class for the devices.
|
com.cloudpos.card |
Provide access to all kinds of cards.
|
com.cloudpos.cashdrawer |
Provide access to the cash drawer device.
|
com.cloudpos.fingerprint |
Provide access to the finger print device.
|
com.cloudpos.hsm |
Provide access to the hardware safe module device.
|
com.cloudpos.led |
Provide access to the LED device.
|
com.cloudpos.msr |
Provide access to the MSR device.
|
com.cloudpos.pinpad |
Provide access to the PINPad device.
|
com.cloudpos.printer |
Provide access to the printer device.
|
com.cloudpos.rfcardreader |
Provide access to the contactless card reader device.
|
com.cloudpos.secondarydisplay |
Provide access to the secondary display device.
|
com.cloudpos.serialport |
Provide access to the serial port device.
|
com.cloudpos.signature |
Provide access to the signature device.
|
com.cloudpos.smartcardreader |
Provide access to the smart card reader device.
|
Modifier and Type | Method and Description |
---|---|
void |
Device.cancelRequest()
Attempts to cancel a pending request.
|
void |
Device.close()
Disconnect a device from the device object.
|
void |
Device.open()
Uses default logical ID to open the device for use.
|
Modifier and Type | Method and Description |
---|---|
ATR |
SLE4442Card.connect()
Applies power to the smart card reader slot, performing a cold reset.
|
ATR |
CPUCard.connect()
connect to the card and return the ATR information.
|
boolean |
MifareCard.decreaseValue(int sectorIndex,
int blockOfSector,
int value)
Decreases E-Wallet data value.
|
void |
SLE4442Card.disconnect()
Removes power from the smart card reader slot.
|
void |
CPUCard.disconnect()
disconnect the card.
|
int |
Card.getCardStatus()
Gets card status.
|
byte[] |
Card.getID()
Gets card ID.
|
int |
Card.getProtocol()
Gets the constant value of the communication protocol between the card slot and the card.
|
boolean |
MifareCard.increaseValue(int sectorIndex,
int blockOfSector,
int value)
Increases E-Wallet data value.
|
byte[] |
MifareUltralightCard.read(int blockIndex)
Read 4 blocks (16 bytes).
|
byte[] |
SLE4442Card.read(int area,
int address,
int length)
Reads data.
|
byte[] |
MifareCard.readBlock(int sectorIndex,
int blockOfSector)
Reads the data in some block.
|
MoneyValue |
MifareCard.readValue(int sectorIndex,
int blockOfSector)
Reads data from E-Wallet.
|
byte[] |
CPUCard.transmit(byte[] apdu)
Sends a data buffer to the card reader.
|
byte[] |
MifareUltralightCard.transmit(byte[] apdu,
int operation)
Transmit command of level 3 and get the response.
|
byte[] |
MifareCard.transmit(byte[] apdu,
int operation)
Transmit command of level 3 and get the response.
|
byte[] |
CPUCard.transmit(byte[] apdu,
int operation)
Transmit command of level 3 and get the response.
|
boolean |
SLE4442Card.verify(byte[] key)
Authenticates the card with key.
|
boolean |
MifareUltralightCard.verifyKey(byte[] key)
Authenticates with key.
|
boolean |
MifareCard.verifyKeyA(int sectorIndex,
byte[] key)
Authenticates a sector with key A.
|
boolean |
MifareCard.verifyKeyB(int sectorIndex,
byte[] key)
Authenticates a sector with key B.
|
void |
MifareUltralightCard.write(int blockIndex,
byte[] data)
Write 1 block (4 bytes).
|
void |
SLE4442Card.write(int area,
int address,
byte[] data)
Writes data.
|
void |
MifareCard.writeBlock(int sectorIndex,
int blockOfSector,
byte[] buffer)
Writes the data to block.
|
void |
MifareCard.writeValue(int sectorIndex,
int blockOfSector,
MoneyValue value)
Writes the data to E-Wallet.
|
Modifier and Type | Method and Description |
---|---|
void |
CashDrawerDevice.kickOut()
Kicks out the cash drawer.
|
void |
CashDrawerDevice.open(int logicalID)
Opens the cash drawer for use.
|
int |
CashDrawerDevice.queryStatus()
Gets the status of the cash drawer.
|
Modifier and Type | Method and Description |
---|---|
int |
FingerprintDevice.convertFormat(Fingerprint fingerprintIn,
int typeIn,
Fingerprint fingerprintOut,
int typeOut)
Convert fingerprint from one type to another.
|
int |
FingerprintDevice.delAllFingers()
Delete all fingerprints.
|
int |
FingerprintDevice.delFinger(int userID)
Delete one fingerprint.
|
int |
FingerprintDevice.enroll(int userID,
int timeout)
Enroll fingerprint.
|
Fingerprint |
FingerprintDevice.getFingerprint(int type)
Get the active fingerprint, specified the type of the fingerprint.
|
Fingerprint |
FingerprintDevice.getFingerprint(int userID,
int type)
Get the specified fingerprint.
|
int |
FingerprintDevice.getId()
Get the id of fingerprint.
|
int[] |
FingerprintDevice.listAllFingersStatus()
List all the fingerprints's status.
|
void |
FingerprintDevice.listenForFingerprint(OperationListener listener,
int timeout)
Starts scan the finger print.
|
int |
FingerprintDevice.match(Fingerprint fingerprint1,
Fingerprint fingerprint2)
Matches the two finger print.
|
void |
FingerprintDevice.open(int logicalID)
Opens the device with a specific communication mode.
|
int |
FingerprintDevice.storeFeature(int userID,
Fingerprint fingerprint)
Store the fingerprint.
|
int |
FingerprintDevice.verifyAgainstFingerprint(Fingerprint fingerprint,
int timeout)
Verify the active fingerprint against the the specified fingerprint.
|
int |
FingerprintDevice.verifyAgainstUserId(int userID,
int timeout)
Verify the active fingerprint against the the specified user id.
|
int |
FingerprintDevice.verifyAll(int timeout)
Verify the active fingerprint.
|
FingerprintOperationResult |
FingerprintDevice.waitForFingerprint(int timeout)
This is the synchronous method of the
FingerprintDevice.listenForFingerprint(OperationListener,int) . |
Modifier and Type | Method and Description |
---|---|
byte[] |
HSMDevice.decrypt(int algorithm,
java.lang.String aliasPrivateKey,
byte[] bufCipher)
Do decryption by the given private key.
|
boolean |
HSMDevice.deleteCertificate(int certType,
java.lang.String alias)
Removes the certificate of the given alias.
|
boolean |
HSMDevice.deleteKeyPair(java.lang.String aliasPrivateKey)
Removes the key pair of the given alias.
|
byte[] |
HSMDevice.encrypt(int algorithm,
java.lang.String aliasPrivateKey,
byte[] bufPlain)
Do encryption by the given private key.
|
byte[] |
HSMDevice.generateCSR(java.lang.String aliasPrivateKey,
javax.security.auth.x500.X500Principal subject)
Generates the CSR for given private key.
|
void |
HSMDevice.generateKeyPair(java.lang.String aliasPrivateKey,
int algorithm,
int keySize)
Requests hardware safe module to generate a key pair inside the module.
|
byte[] |
HSMDevice.generateRandom(int length)
Gets the real random buffer from hardware safe module.
|
byte[] |
HSMDevice.getCertificate(int certType,
java.lang.String alias,
int dataFormat)
Gets the certificate data.
|
java.lang.String |
HSMDevice.getEncryptedUniqueCode(java.lang.String uniqueCode,
java.lang.String randomFactor)
Gets the encrypted cipher data of unique code.
|
long |
HSMDevice.getFreeSpace()
Gets the free space of the hardware safe module.
|
boolean |
HSMDevice.injectPublicKeyCertificate(java.lang.String alias,
java.lang.String aliasPrivateKey,
byte[] bufCert,
int dataFormat)
Injects the certificate of the public key of the existing key pair.
|
boolean |
HSMDevice.injectRootCertificate(int certType,
java.lang.String alias,
byte[] bufCert,
int dataFormat)
Injects the root certificates to hardware safe module.
|
boolean |
HSMDevice.isTampered()
Checks the hardware safe module is tampered or not.
|
void |
HSMDevice.open(int logicalID)
Opens the hardware safe module for use.
|
java.lang.String[] |
HSMDevice.queryCertificates(int certType)
Gets the certificates from the hardware safe module.
|
Modifier and Type | Method and Description |
---|---|
void |
LEDDevice.blink(byte color,
long delayTurnOn,
long delayTurnOff,
int counts)
This method causes the LED to blink a specified number of times.
|
void |
LEDDevice.blink(long delayTurnOn,
long delayTurnOff,
int counts)
This method causes the LED to blink a specified number of times.
|
void |
LEDDevice.cancelBlink()
This method cancels the blink of the LED.
|
int |
LEDDevice.getLogicalID()
Gets the current using logicalID.
|
int |
LEDDevice.getStatus()
Gets the LED current status.
|
void |
LEDDevice.open(int logicalID)
Opens the control of the LED.
|
void |
LEDDevice.startBlink(byte color,
long delayTurnOn,
long delayTurnOff,
int counts)
This method causes the LED to begin blinking continuously.
|
void |
LEDDevice.startBlink(long delayTurnOn,
long delayTurnOff)
This method causes the LED to begin blinking continuously.
|
void |
LEDDevice.startBlink(long delayTurnOn,
long delayTurnOff,
int counts)
This method causes the LED to begin blinking continuously.
|
void |
LEDDevice.turnOff()
Turn off the LED.
|
void |
LEDDevice.turnOn()
Turn on the LED.
|
Modifier and Type | Method and Description |
---|---|
void |
MSRDevice.listenForSwipe(OperationListener listener,
int timeout)
Initiates the operation to obtain the data read from selected tracks.
|
void |
MSRDevice.open(int logicalID)
Connects the MSR device to a specific logical ID.
|
MSROperationResult |
MSRDevice.waitForSwipe(int timeout)
The synchronous method of
MSRDevice.listenForSwipe(OperationListener,int) . |
MSROperationResult |
MSRUtils.waitForSwipe(int timeout,
Context context)
Firstly, call
open() , then call waitForSwipe(int)
wait for swipe. |
Modifier and Type | Method and Description |
---|---|
byte[] |
PINPadDevice.calculateMac(KeyInfo keyInfo,
int macFlag,
byte[] plain)
Calculates the MAC using current user key defined in
KeyInfo . |
void |
PINPadDevice.clearText()
Clears the message in the LCD.
|
byte[] |
PINPadDevice.encryptData(KeyInfo keyInfo,
byte[] plain)
Encrypts the data using user key defined in
KeyInfo |
byte[] |
PINPadDevice.encryptData(KeyInfo keyInfo,
byte[] plain,
int mode,
byte[] IV,
int IVLen)
Encrypts the data using user key defined in
KeyInfo |
byte[] |
PINPadDevice.getRandom(int length)
Gets random data.
|
byte[] |
PINPadDevice.getSessionKeyCheckValue(int masterKeyID,
int userKeyID,
int algoCheckValue)
Get check value for session key.
|
java.lang.String |
PINPadDevice.getSN()
Gets PINPad serial number.
|
void |
PINPadDevice.listenForOfflinePin(boolean voicePrompt,
OperationListener listener,
int timeout)
Let the user to wait the offline pin.
|
void |
PINPadDevice.listenForPinBlock(KeyInfo keyInfo,
java.lang.String pan,
boolean voicePrompt,
OperationListener listener,
int timeout)
Let the user input the PIN and calculate the encrypted pin block.
|
void |
PINPadDevice.open(int logicalID)
Opens the control of the PINPad.
|
void |
PINPadDevice.setPINLength(int minLen,
int maxLen)
Set the length of input PIN.
|
void |
PINPadDevice.showText(int lineIndex,
java.lang.String message)
Displays message in the LCD.
|
void |
PINPadDevice.showText(int lineIndex,
java.lang.String message,
boolean voicePrompt)
Displays message in the LCD.
|
void |
PINPadDevice.updateMasterKey(int masterKeyID,
byte[] oldMasterKey,
byte[] newMasterKey)
Updates master key.
|
void |
PINPadDevice.updateMasterKeyWithCheck(int masterKeyID,
byte[] cipherNewMasterKey,
byte[] checkValue,
int algoCheckValue)
Updates master key, the master key must be ciphered by transport key.
|
void |
PINPadDevice.updateUserKey(int masterKeyID,
int userKeyID,
byte[] cipherNewUserKey)
Updates the user key(session key).
|
void |
PINPadDevice.updateUserKey(int masterKeyID,
int userKeyID,
byte[] cipherNewUserKey,
int checkType,
byte[] checkValue)
Updates the user key(session key).
|
void |
PINPadDevice.updateUserKey(int masterKeyID,
int userKeyID,
byte[] cipherNewUserKey,
int checkType,
byte[] checkValue,
KeyInfo keyInfo)
Update user key when using Master/Session key type.
|
void |
PINPadDevice.updateUserKeyWithCheck(int masterKeyID,
int userKeyID,
byte[] cipherNewUserKey,
int userKeyType,
byte[] checkValue,
int algoCheckValue)
Updates the user key(session key).
|
PINPadOperationResult |
PINPadDevice.waitForOfflinePin(boolean voicePrompt,
int timeout)
The synchronous method of
PINPadDevice.listenForOfflinePin(boolean,OperationListener,int) . |
PINPadOperationResult |
PINPadDevice.waitForPinBlock(KeyInfo keyInfo,
java.lang.String pan,
boolean voicePrompt,
int timeout)
The synchronous method of
PINPadDevice.listenForPinBlock(KeyInfo,String,boolean,OperationListener,int) . |
Modifier and Type | Method and Description |
---|---|
void |
PrinterDevice.cutPaper()
Cut paper, only in the printer that supported.
|
Format |
PrinterDevice.getDefaultParameters()
Gets the default format.
|
void |
PrinterDevice.open(int logicalID)
Opens the control of the Printer.
|
void |
PrinterDevice.printBarcode(Format format,
int barcodeType,
java.lang.String barcode)
print barcode.
|
void |
PrinterDevice.printBitmap(Bitmap bitmap)
Print bitmap.
|
void |
PrinterDevice.printBitmap(Format format,
Bitmap bitmap)
print bitmap.
|
void |
PrinterDevice.printHTML(Context context,
java.lang.String htmlContent,
com.wizarpos.htmllibrary.PrinterHtmlListener listener)
Print html content, add WebView.enableSlowWholeDocumentDraw(); in the calling app, and add this permission
in manifest file,
|
void |
PrinterDevice.printlnText(Format format,
java.lang.String message)
Print text, line wrap.
|
void |
PrinterDevice.printlnText(java.lang.String message)
Print text, line wrap.
|
void |
PrinterDevice.printText(Format format,
java.lang.String message)
Print text.
|
void |
PrinterDevice.printText(java.lang.String message)
Print text.
|
byte[] |
PrinterDevice.queryESC(byte[] esc,
int length,
int timeout)
Queries result ESC command.
|
int |
PrinterDevice.queryStatus()
Query the paper status in printer.
|
int |
PrinterDevice.sendESCCommand(byte[] esc)
Send ESC, to operate the printer.
|
Modifier and Type | Method and Description |
---|---|
int |
RFCardReaderDevice.getMode()
Gets current communication mode.
|
int |
RFCardReaderDevice.getSpeed()
Gets the baud rate.
|
void |
RFCardReaderDevice.listenForCardAbsent(OperationListener listener,
int timeout)
Listens until a card is removed from this terminal.
|
void |
RFCardReaderDevice.listenForCardPresent(OperationListener listener,
int timeout)
Starts reader according to Contactless protocols and performs
initialization according to the communication mode.
|
void |
RFCardReaderDevice.open(int logicalID,
int mode)
Opens the device with a specific communication mode.
|
void |
RFCardReaderDevice.setSpeed(int value)
Sets the baud rate used
during the initialization phase.
|
RFCardReaderOperationResult |
RFCardReaderDevice.waitForCardAbsent(int timeout)
This is the synchronous method of the
RFCardReaderDevice.listenForCardAbsent(OperationListener,int) . |
RFCardReaderOperationResult |
RFCardReaderDevice.waitForCardPresent(int timeout)
This is the synchronous method of the
RFCardReaderDevice.listenForCardPresent(OperationListener,int) . |
Modifier and Type | Method and Description |
---|---|
void |
SecondaryDisplayDevice.beep()
Let the secondary display beep.
|
void |
SecondaryDisplayDevice.display(Bitmap bitmap)
Set the background image of the secondary display.
|
void |
SecondaryDisplayDevice.display(Bitmap bitmap,
int offsetX,
int offsetY)
Set the background image of the secondary display.
|
void |
SecondaryDisplayDevice.open(int logicalID)
Opens the control of the secondary display.
|
void |
SecondaryDisplayDevice.resetDisplay()
Reset the default display of the secondary display.
|
void |
SecondaryDisplayDevice.setBackgroundColor(int color)
Set the background color of the secondary display.
|
Modifier and Type | Method and Description |
---|---|
void |
SerialPortDevice.changeFlowControlMode(int flowControl)
Changes the flow control mode.
|
void |
SerialPortDevice.changeRTS(boolean rts)
Sets or clears the RTS (Request To Send) bit in the UART.
|
void |
SerialPortDevice.changeSerialPortParams(int baudrate,
int dataBits,
int stopBits,
int parity)
Changes the serial port parameters.
|
int |
SerialPortDevice.getBaudRate()
Gets the currently configured baud rate.
|
int |
SerialPortDevice.getDataBits()
Gets the currently configured number of data bits.
|
int |
SerialPortDevice.getFlowControlMode()
Gets the currently configured flow control mode.
|
int |
SerialPortDevice.getParity()
Gets the currently configured parity setting.
|
int |
SerialPortDevice.getStopBits()
Gets the currently defined stop bits.
|
void |
SerialPortDevice.listenForRead(int len,
OperationListener listener,
int timeout)
Reads up to byteCount bytes from this serial control and stores them in
the byte array buffer starting at byteOffset.
|
void |
SerialPortDevice.open(int logicID)
Connects the serial communication control to a specific serial port.
|
boolean |
SerialPortDevice.retrieveCTS()
Retrieves the state of the CTS (Clear To Send) bit in the UART.
|
boolean |
SerialPortDevice.retrieveRTS()
Retrieves the state of the RTS (Request To Send) bit in the UART.
|
SerialPortOperationResult |
SerialPortDevice.waitForRead(int len,
int timeout)
The synchronous method of
SerialPortDevice.listenForRead(int,OperationListener,int) . |
void |
SerialPortDevice.write(byte[] data,
int offset,
int len)
Writes
len bytes from the specified byte array starting at
offset to the open output stream. |
Modifier and Type | Method and Description |
---|---|
void |
SignatureDevice.listenSignature(java.lang.String transactionCode,
OperationListener listener,
int timeout)
Listens until write the signature in this terminal.
|
void |
SignatureDevice.open(int logicID)
Opens the device.
|
SignatureOperationResult |
SignatureDevice.waitSignature(java.lang.String transactionCode,
int timeout)
This is the synchronous method of the
SignatureDevice.listenSignature(String,OperationListener,int) . |
Modifier and Type | Method and Description |
---|---|
void |
SmartCardReaderDevice.listenForCardAbsent(OperationListener listener,
int timeout)
Listens until a card is removed from this terminal.
|
void |
SmartCardReaderDevice.listenForCardPresent(OperationListener listener,
int timeout)
Listens until a card is inserted in this terminal.
|
void |
SmartCardReaderDevice.open(int logicalID)
Opens the device.
|
SmartCardReaderOperationResult |
SmartCardReaderDevice.waitForCardAbsent(int timeout)
This is the synchronous method of the
SmartCardReaderDevice.listenForCardAbsent(OperationListener,int) . |
SmartCardReaderOperationResult |
SmartCardReaderDevice.waitForCardPresent(int timeout)
This is the synchronous method of the
SmartCardReaderDevice.listenForCardPresent(OperationListener,int) . |