public class JSignatureGeneratorDE extends JSignatureGenerator
instance, loggerregister_id| Constructor and Description |
|---|
JSignatureGeneratorDE() |
| Modifier and Type | Method and Description |
|---|---|
String |
collectProcessData(Ticket oTicket) |
String |
exportData(Long taNumber,
Long taStart,
Long taEnd,
Date from,
Date to,
Long maxNumberRecords,
Boolean withDelete)
Exports TSE data according to the given paramaters to the configured
tarPath.
|
void |
finish_audit_log(Long auditTransactionNumber) |
void |
finishTransaction(Ticket oTicket,
org.json.JSONObject ret_params) |
String |
getConfigPanel() |
String |
getMaintenancePanel() |
String |
getManufacturer() |
String |
getSerialNumber() |
protected void |
makeSignature(Ticket oTicket,
StringBuilder sSignature)
makeSignature shall send the transaction data of this sales transaction
to the TSE and construct a signature string as described in the BSI
document [DSFinV-K] Appendix I.2.
|
String |
selfTest()
Send a selfTest command to the TSE server to obtain the current
TSE variables.
|
Long |
start_audit_log()
Start a TSE transaction to accept audit log entries.
|
void |
startTransaction(Ticket oTicket,
org.json.JSONObject ret_params) |
void |
updateTransaction(Ticket oTicket,
org.json.JSONObject ret_params) |
void |
write_audit_log(String logMessage)
Create a log entry for an audit log message in the TSE.
|
calculateTurnoverForCounter, generateSignature, getInstance, getRegister_idpublic JSignatureGeneratorDE()
throws BasicException
BasicExceptionpublic String getMaintenancePanel()
getMaintenancePanel in class JSignatureGeneratorpublic String getConfigPanel()
getConfigPanel in class JSignatureGeneratorprotected void makeSignature(Ticket oTicket, StringBuilder sSignature) throws FiscalSignatureException, FiscalSignatureFatalException, GeneralSecurityException
makeSignature in class JSignatureGeneratoroTicket - the ticket to be signedsSignature - a StringBuilder object with the QR code dataFiscalSignatureExceptionFiscalSignatureFatalExceptionGeneralSecurityExceptionpublic void startTransaction(Ticket oTicket, org.json.JSONObject ret_params) throws FiscalSignatureException
FiscalSignatureExceptionpublic void updateTransaction(Ticket oTicket, org.json.JSONObject ret_params) throws FiscalSignatureException
FiscalSignatureExceptionpublic void finishTransaction(Ticket oTicket, org.json.JSONObject ret_params) throws FiscalSignatureException
FiscalSignatureExceptionpublic String exportData(Long taNumber, Long taStart, Long taEnd, Date from, Date to, Long maxNumberRecords, Boolean withDelete) throws FiscalSignatureException
taNumber - export a single transactiontaStart - export transactions starting with number taStart and
ending with number taEndtaEnd - see if null export to latestfrom - export transactions starting at date from and ending at date
toto - if null export to current datemaxNumberRecords - maximum number of records to exportwithDelete - if true export all data, then delete all data from the
TSE. All other parameters will be ignored.FiscalSignatureExceptionpublic String collectProcessData(Ticket oTicket) throws FiscalException
FiscalExceptionpublic String getSerialNumber() throws BasicException
BasicExceptionpublic String getManufacturer()
public void write_audit_log(String logMessage)
write_audit_log in class JSignatureGeneratorlogMessage - the lo message as string as it is also written to the
audit log.public Long start_audit_log()
start_audit_log in class JSignatureGeneratorpublic void finish_audit_log(Long auditTransactionNumber)
finish_audit_log in class JSignatureGeneratorpublic String selfTest() throws BasicException
BasicExceptionCopyright © 2021. All rights reserved.