public abstract class JSignatureGenerator extends Object implements SignatureGenerator
Modifier and Type | Field and Description |
---|---|
protected static JSignatureGenerator |
instance |
protected org.apache.log4j.Logger |
logger |
register_id
Modifier | Constructor and Description |
---|---|
protected |
JSignatureGenerator() |
Modifier and Type | Method and Description |
---|---|
Long |
calculateTurnoverForCounter(Ticket oTicket) |
void |
finish_audit_log(Long auditTransactionNumber) |
String |
generateSignature(Ticket oTicket) |
abstract String |
getConfigPanel() |
static JSignatureGenerator |
getInstance() |
abstract String |
getMaintenancePanel() |
String |
getRegister_id() |
protected abstract void |
makeSignature(Ticket oTicket,
StringBuilder sSignature)
makeSignature shall provide a string representation of the data to be
presented in the tickets QR code, if present
|
Long |
start_audit_log()
This code was part of an approach to follow up orders in the TSE
public void start_order(Ticket orderTicket) {
logger.info("Not implemented for " + this.getClass().getName());
}
public void update_order(Ticket orderTicket) {
logger.info("Not implemented for " + this.getClass().getName());
}
public void finish_order(Ticket orderTicket) {
logger.info("Not implemented for " + this.getClass().getName());
}
|
void |
write_audit_log(String renderedMessage) |
protected static JSignatureGenerator instance
protected org.apache.log4j.Logger logger
protected JSignatureGenerator() throws BasicException
BasicException
public static JSignatureGenerator getInstance()
public String getRegister_id()
public abstract String getMaintenancePanel()
public abstract String getConfigPanel()
public String generateSignature(Ticket oTicket)
generateSignature
in interface SignatureGenerator
protected abstract void makeSignature(Ticket oTicket, StringBuilder sSignature) throws FiscalSignatureException, FiscalSignatureFatalException, GeneralSecurityException
oTicket
- sSignature
- return param with a StringBuilder object containing
the QR code dataFiscalSignatureException
FiscalSignatureFatalException
GeneralSecurityException
public Long calculateTurnoverForCounter(Ticket oTicket)
calculateTurnoverForCounter
in interface SignatureGenerator
public void write_audit_log(String renderedMessage)
public Long start_audit_log()
public void finish_audit_log(Long auditTransactionNumber)
Copyright © 2021. All rights reserved.