Class CAdESService
java.lang.Object
eu.europa.esig.dss.signature.AbstractSignatureService<CAdESSignatureParameters>
eu.europa.esig.dss.cades.signature.CAdESService
- All Implemented Interfaces:
DocumentSignatureService<CAdESSignatureParameters>,Serializable
public class CAdESService extends AbstractSignatureService<CAdESSignatureParameters>
CAdES implementation of DocumentSignatureService
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class eu.europa.esig.dss.signature.AbstractSignatureService
certificateVerifier, tspSource -
Constructor Summary
Constructors Constructor Description CAdESService(CertificateVerifier certificateVerifier)This is the constructor to create an instance of theCAdESService. -
Method Summary
Modifier and Type Method Description eu.europa.esig.dss.model.DSSDocumentextendDocument(eu.europa.esig.dss.model.DSSDocument toExtendDocument, CAdESSignatureParameters parameters)TimestampTokengetContentTimestamp(eu.europa.esig.dss.model.DSSDocument toSignDocument, CAdESSignatureParameters parameters)eu.europa.esig.dss.model.ToBeSignedgetDataToSign(eu.europa.esig.dss.model.DSSDocument toSignDocument, CAdESSignatureParameters parameters)eu.europa.esig.dss.model.DSSDocumentsignDocument(eu.europa.esig.dss.model.DSSDocument toSignDocument, CAdESSignatureParameters parameters, eu.europa.esig.dss.model.SignatureValue signatureValue)Methods inherited from class eu.europa.esig.dss.signature.AbstractSignatureService
assertSigningDateInCertificateValidityRange, getFinalFileName, getFinalFileName, setTspSource
-
Constructor Details
-
CAdESService
This is the constructor to create an instance of theCAdESService. A certificate verifier must be provided.- Parameters:
certificateVerifier-CertificateVerifierprovides information on the sources to be used in the validation process in the context of a signature.
-
-
Method Details
-
getContentTimestamp
public TimestampToken getContentTimestamp(eu.europa.esig.dss.model.DSSDocument toSignDocument, CAdESSignatureParameters parameters) -
getDataToSign
public eu.europa.esig.dss.model.ToBeSigned getDataToSign(eu.europa.esig.dss.model.DSSDocument toSignDocument, CAdESSignatureParameters parameters) throws eu.europa.esig.dss.model.DSSException- Throws:
eu.europa.esig.dss.model.DSSException
-
signDocument
public eu.europa.esig.dss.model.DSSDocument signDocument(eu.europa.esig.dss.model.DSSDocument toSignDocument, CAdESSignatureParameters parameters, eu.europa.esig.dss.model.SignatureValue signatureValue) throws eu.europa.esig.dss.model.DSSException- Throws:
eu.europa.esig.dss.model.DSSException
-
extendDocument
public eu.europa.esig.dss.model.DSSDocument extendDocument(eu.europa.esig.dss.model.DSSDocument toExtendDocument, CAdESSignatureParameters parameters)
-