public class JSignatureGeneratorDE extends JSignatureGenerator
instance, logger
register_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_id
public JSignatureGeneratorDE() throws BasicException
BasicException
public String getMaintenancePanel()
getMaintenancePanel
in class JSignatureGenerator
public String getConfigPanel()
getConfigPanel
in class JSignatureGenerator
protected void makeSignature(Ticket oTicket, StringBuilder sSignature) throws FiscalSignatureException, FiscalSignatureFatalException, GeneralSecurityException
makeSignature
in class JSignatureGenerator
oTicket
- the ticket to be signedsSignature
- a StringBuilder object with the QR code dataFiscalSignatureException
FiscalSignatureFatalException
GeneralSecurityException
public void startTransaction(Ticket oTicket, org.json.JSONObject ret_params) throws FiscalSignatureException
FiscalSignatureException
public void updateTransaction(Ticket oTicket, org.json.JSONObject ret_params) throws FiscalSignatureException
FiscalSignatureException
public void finishTransaction(Ticket oTicket, org.json.JSONObject ret_params) throws FiscalSignatureException
FiscalSignatureException
public 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.FiscalSignatureException
public String collectProcessData(Ticket oTicket) throws FiscalException
FiscalException
public String getSerialNumber() throws BasicException
BasicException
public String getManufacturer()
public void write_audit_log(String logMessage)
write_audit_log
in class JSignatureGenerator
logMessage
- the lo message as string as it is also written to the
audit log.public Long start_audit_log()
start_audit_log
in class JSignatureGenerator
public void finish_audit_log(Long auditTransactionNumber)
finish_audit_log
in class JSignatureGenerator
public String selfTest() throws BasicException
BasicException
Copyright © 2021. All rights reserved.