Class ASiCWithCAdESService
- java.lang.Object
-
- eu.europa.esig.dss.signature.AbstractSignatureService<SP>
-
- eu.europa.esig.dss.asic.common.signature.AbstractASiCSignatureService<ASiCWithCAdESSignatureParameters>
-
- eu.europa.esig.dss.asic.cades.signature.ASiCWithCAdESService
-
- All Implemented Interfaces:
DocumentSignatureService<ASiCWithCAdESSignatureParameters>,MultipleDocumentsSignatureService<ASiCWithCAdESSignatureParameters>,Serializable
public class ASiCWithCAdESService extends AbstractASiCSignatureService<ASiCWithCAdESSignatureParameters>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class eu.europa.esig.dss.asic.common.signature.AbstractASiCSignatureService
archiveContent
-
Fields inherited from class eu.europa.esig.dss.signature.AbstractSignatureService
certificateVerifier, tspSource
-
-
Constructor Summary
Constructors Constructor Description ASiCWithCAdESService(CertificateVerifier certificateVerifier)
-
Method Summary
Modifier and Type Method Description DSSDocumentextendDocument(DSSDocument toExtendDocument, ASiCWithCAdESSignatureParameters parameters)Extends the level of the signatures in thetoExtendDocumentprotected AbstractASiCContainerExtractorgetArchiveExtractor(DSSDocument archive)TimestampTokengetContentTimestamp(List<DSSDocument> toSignDocuments, ASiCWithCAdESSignatureParameters parameters)ToBeSignedgetDataToSign(List<DSSDocument> toSignDocuments, ASiCWithCAdESSignatureParameters parameters)Retrieves the bytes of the data that need to be signed based on thetoSignDocumentsandparameters.protected StringgetExpectedSignatureExtension()protected booleanisSignatureFilename(String name)DSSDocumentsignDocument(List<DSSDocument> toSignDocuments, ASiCWithCAdESSignatureParameters parameters, SignatureValue signatureValue)Signs the toSignDocuments with the provided signatureValue.-
Methods inherited from class eu.europa.esig.dss.asic.common.signature.AbstractASiCSignatureService
buildASiCContainer, extractCurrentArchive, getContentTimestamp, getDataToSign, getEmbeddedArchiveManifests, getEmbeddedManifests, getEmbeddedMimetype, getEmbeddedSignatures, getEmbeddedSignedDocuments, getEmbeddedTimestamps, mergeArchiveAndExtendedSignatures, signDocument, storeZipComment
-
Methods inherited from class eu.europa.esig.dss.signature.AbstractSignatureService
assertSigningDateInCertificateValidityRange, getFinalFileName, getFinalFileName, setTspSource
-
-
-
-
Constructor Detail
-
ASiCWithCAdESService
public ASiCWithCAdESService(CertificateVerifier certificateVerifier)
-
-
Method Detail
-
getContentTimestamp
public TimestampToken getContentTimestamp(List<DSSDocument> toSignDocuments, ASiCWithCAdESSignatureParameters parameters)
-
getDataToSign
public ToBeSigned getDataToSign(List<DSSDocument> toSignDocuments, ASiCWithCAdESSignatureParameters parameters)
Description copied from interface:MultipleDocumentsSignatureServiceRetrieves the bytes of the data that need to be signed based on thetoSignDocumentsandparameters. WhentoSignDocumentscontains an already existing signature the returned bytes are related to a new parallel signature.- Parameters:
toSignDocuments- list of documents to signparameters- set of the driving signing parameters- Returns:
- the data to be signed
-
signDocument
public DSSDocument signDocument(List<DSSDocument> toSignDocuments, ASiCWithCAdESSignatureParameters parameters, SignatureValue signatureValue)
Description copied from interface:MultipleDocumentsSignatureServiceSigns the toSignDocuments with the provided signatureValue.- Parameters:
toSignDocuments- list of documents to signparameters- set of the driving signing parameterssignatureValue- the signature value to incorporate- Returns:
- the container with the signature and the documents (ASiC) or the signature file
-
extendDocument
public DSSDocument extendDocument(DSSDocument toExtendDocument, ASiCWithCAdESSignatureParameters parameters)
Description copied from interface:MultipleDocumentsSignatureServiceExtends the level of the signatures in thetoExtendDocument- Parameters:
toExtendDocument- document to extendparameters- set of the driving signing parameters- Returns:
- the extended signature
-
isSignatureFilename
protected boolean isSignatureFilename(String name)
- Specified by:
isSignatureFilenamein classAbstractASiCSignatureService<ASiCWithCAdESSignatureParameters>
-
getArchiveExtractor
protected AbstractASiCContainerExtractor getArchiveExtractor(DSSDocument archive)
- Specified by:
getArchiveExtractorin classAbstractASiCSignatureService<ASiCWithCAdESSignatureParameters>
-
getExpectedSignatureExtension
protected String getExpectedSignatureExtension()
- Specified by:
getExpectedSignatureExtensionin classAbstractASiCSignatureService<ASiCWithCAdESSignatureParameters>
-
-