Package de.gematik.bbriccs.konnektor
Class SoftKonSigner
java.lang.Object
de.gematik.bbriccs.konnektor.SoftKonSigner
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]signDocument(Hba hba, CryptoSystem cryptoSystem, boolean includeRevocationInfo, byte[] data) byte[]signDocument(Hba hba, CryptoSystem cryptoSystem, boolean includeRevocationInfo, String data) Using an HBA to sign a document will result in a QES signaturebyte[]signDocument(Smartcard smartcard, CryptoSystem cryptoSystem, boolean includeRevocationInfo, byte[] data) byte[]signDocument(SmcB smcB, CryptoSystem cryptoSystem, boolean includeRevocationInfo, byte[] data) byte[]signDocument(SmcB smcB, CryptoSystem cryptoSystem, boolean includeRevocationInfo, String data) Using an SMC-B to sign a document will result in a non-QES signature
-
Method Details
-
signDocument
public byte[] signDocument(Smartcard smartcard, CryptoSystem cryptoSystem, boolean includeRevocationInfo, byte[] data) -
signDocument
public byte[] signDocument(Hba hba, CryptoSystem cryptoSystem, boolean includeRevocationInfo, String data) Using an HBA to sign a document will result in a QES signature- Parameters:
hba- to be used for the QEScryptoSystem- to be used for the QES which can be RSA or ECCincludeRevocationInfo- if set to true will include OCSP-Response to the signaturedata- to be signed
-
signDocument
public byte[] signDocument(Hba hba, CryptoSystem cryptoSystem, boolean includeRevocationInfo, byte[] data) -
signDocument
public byte[] signDocument(SmcB smcB, CryptoSystem cryptoSystem, boolean includeRevocationInfo, String data) Using an SMC-B to sign a document will result in a non-QES signature- Parameters:
smcB- to be used for the non-QEScryptoSystem- to be used for the non-QES which can be RSA or ECCincludeRevocationInfo- if set to true will include OCSP-Response to the signaturedata- to be signed
-
signDocument
public byte[] signDocument(SmcB smcB, CryptoSystem cryptoSystem, boolean includeRevocationInfo, byte[] data)
-