public class JSignatureGeneratorAT extends JSignatureGenerator
Modifier and Type | Class and Description |
---|---|
static class |
JSignatureGeneratorAT.TURNOVER
This type defines how the previous turnover value is retrieved.
|
Modifier and Type | Field and Description |
---|---|
protected String[] |
fiscalTax |
protected JWSModule |
jwsModule |
protected String |
registerID |
protected RKSuite |
rkSuite |
protected SecretKey |
turnoverKey |
instance, logger
register_id
Constructor and Description |
---|
JSignatureGeneratorAT() |
Modifier and Type | Method and Description |
---|---|
protected String |
calculateSignatureValuePreviousReceipt(Ticket ticket) |
Long |
calculateTurnoverForCounter(Ticket oTicket) |
protected String |
encryptTurnover(long ticketNumber,
long turnover)
encrypt turnovercounter ("Stand-Umsatz-Zaehler-AES256-ICM"), according to
Detailspezifikation Abs. 8 and Abs. 9
|
String |
getConfigPanel() |
String |
getMaintenancePanel() |
Certificate |
getSigningCertificate() |
protected boolean |
isCashPayment(Payment payment) |
protected String |
makeDataToBeSigned(Ticket ticket) |
protected String |
makeDataToBeSigned(Ticket ticket,
String chainValue,
JSignatureGeneratorAT.TURNOVER retrieval) |
protected 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
|
protected void |
makeStartSignature(Ticket oTicket,
StringBuilder sSignature) |
void |
populateNullTicket(Ticket oTicket) |
void |
populateStartTicket(Ticket oTicket) |
finish_audit_log, generateSignature, getInstance, getRegister_id, start_audit_log, write_audit_log
protected RKSuite rkSuite
protected SecretKey turnoverKey
protected String registerID
protected String[] fiscalTax
protected JWSModule jwsModule
public JSignatureGeneratorAT() throws BasicException
BasicException
public String getMaintenancePanel()
getMaintenancePanel
in class JSignatureGenerator
public String getConfigPanel()
getConfigPanel
in class JSignatureGenerator
public Long calculateTurnoverForCounter(Ticket oTicket)
calculateTurnoverForCounter
in interface SignatureGenerator
calculateTurnoverForCounter
in class JSignatureGenerator
public Certificate getSigningCertificate() throws GeneralSecurityException
GeneralSecurityException
public void populateNullTicket(Ticket oTicket) throws BasicException, FiscalException
BasicException
FiscalException
public void populateStartTicket(Ticket oTicket) throws BasicException, FiscalException
BasicException
FiscalException
protected void makeSignature(Ticket oTicket, StringBuilder sSignature) throws FiscalSignatureException, FiscalSignatureFatalException, GeneralSecurityException
JSignatureGenerator
makeSignature
in class JSignatureGenerator
sSignature
- return param with a StringBuilder object containing
the QR code dataFiscalSignatureException
FiscalSignatureFatalException
GeneralSecurityException
protected void makeStartSignature(Ticket oTicket, StringBuilder sSignature) throws FiscalSignatureException, FiscalSignatureFatalException, GeneralSecurityException
protected String makeDataToBeSigned(Ticket ticket) throws GeneralSecurityException, FiscalSignatureFatalException
protected String makeDataToBeSigned(Ticket ticket, String chainValue, JSignatureGeneratorAT.TURNOVER retrieval) throws GeneralSecurityException, FiscalSignatureFatalException
protected String encryptTurnover(long ticketNumber, long turnover) throws GeneralSecurityException
ticketNumber
- turnover
- GeneralSecurityException
protected String calculateSignatureValuePreviousReceipt(Ticket ticket) throws GeneralSecurityException, FiscalSignatureFatalException
protected boolean isCashPayment(Payment payment)
Copyright © 2021. All rights reserved.