public class SoftwareFakeJWSModule extends AbstractJWSModule
Modifier and Type | Field and Description |
---|---|
protected List<Certificate> |
certificateChain |
protected boolean |
closedSystemSignatureDevice |
protected RKSuite |
rkSuite |
protected String |
serialNumberOrKeyId |
protected Certificate |
signingCertificate |
protected PrivateKey |
signingKey |
Constructor and Description |
---|
SoftwareFakeJWSModule(RKSuite rkSuite,
String keyIdForClosedSystem)
this signature device is based on certificates and could therfore be used by open and closed systems
for open systems the parameter keyIdForClosedSystem needs to be supplied. open systems do not require this
parameter, since the serial number of the certificate is used as identifier
|
Modifier and Type | Method and Description |
---|---|
List<Certificate> |
getCertificateChain() |
Certificate |
getSigningCertificate() |
PrivateKey |
getSigningKey() |
void |
intialise() |
protected String |
sign(String dataToBeSigned) |
signMachineCodeRepOfReceipt, stopgapSignMachineCodeRepOfReceipt
protected PrivateKey signingKey
protected Certificate signingCertificate
protected List<Certificate> certificateChain
protected RKSuite rkSuite
protected String serialNumberOrKeyId
protected boolean closedSystemSignatureDevice
public SoftwareFakeJWSModule(RKSuite rkSuite, String keyIdForClosedSystem) throws GeneralSecurityException
rkSuite
- suite for this signature devicekeyIdForClosedSystem
- key-id, needs to be supplied if the signature device is used for a closed systemGeneralSecurityException
public void intialise() throws GeneralSecurityException
GeneralSecurityException
public PrivateKey getSigningKey()
public Certificate getSigningCertificate()
protected String sign(String dataToBeSigned) throws GeneralSecurityException
sign
in class AbstractJWSModule
GeneralSecurityException
public List<Certificate> getCertificateChain()
Copyright © 2021. All rights reserved.