Class ASiCWithXAdESService
java.lang.Object
eu.europa.esig.dss.signature.AbstractSignatureService<SP,TP>
eu.europa.esig.dss.asic.common.signature.AbstractASiCSignatureService<ASiCWithXAdESSignatureParameters,XAdESTimestampParameters>
eu.europa.esig.dss.asic.xades.signature.ASiCWithXAdESService
- All Implemented Interfaces:
DocumentSignatureService<ASiCWithXAdESSignatureParameters,XAdESTimestampParameters>
,MultipleDocumentsSignatureService<ASiCWithXAdESSignatureParameters,XAdESTimestampParameters>
,Serializable
public class ASiCWithXAdESService extends AbstractASiCSignatureService<ASiCWithXAdESSignatureParameters,XAdESTimestampParameters>
- 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 ASiCWithXAdESService(CertificateVerifier certificateVerifier)
-
Method Summary
Modifier and Type Method Description DSSDocument
extendDocument(DSSDocument toExtendDocument, ASiCWithXAdESSignatureParameters parameters)
Extends the level of the signatures in thetoExtendDocument
protected AbstractASiCContainerExtractor
getArchiveExtractor(DSSDocument archive)
TimestampToken
getContentTimestamp(List<DSSDocument> toSignDocuments, ASiCWithXAdESSignatureParameters parameters)
Creates a content-timestamp attribute (to be include in the signed-data)ToBeSigned
getDataToSign(List<DSSDocument> toSignDocuments, ASiCWithXAdESSignatureParameters parameters)
Retrieves the bytes of the data that need to be signed based on thetoSignDocuments
andparameters
.protected String
getExpectedSignatureExtension()
protected boolean
isSignatureFilename(String name)
DSSDocument
signDocument(List<DSSDocument> toSignDocuments, ASiCWithXAdESSignatureParameters parameters, SignatureValue signatureValue)
Signs the toSignDocuments with the provided signatureValue.DSSDocument
timestamp(List<DSSDocument> toTimestampDocuments, XAdESTimestampParameters parameters)
Timestamps 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, timestamp
Methods inherited from class eu.europa.esig.dss.signature.AbstractSignatureService
assertSigningDateInCertificateValidityRange, getFinalArchiveName, getFinalFileName, setTspSource
-
Constructor Details
-
Method Details
-
getContentTimestamp
public TimestampToken getContentTimestamp(List<DSSDocument> toSignDocuments, ASiCWithXAdESSignatureParameters parameters)Description copied from interface:MultipleDocumentsSignatureService
Creates a content-timestamp attribute (to be include in the signed-data)- Parameters:
toSignDocuments
- list of documents to signparameters
- set of the driving signing parameters- Returns:
- a timestamp token
-
getDataToSign
public ToBeSigned getDataToSign(List<DSSDocument> toSignDocuments, ASiCWithXAdESSignatureParameters parameters)Description copied from interface:MultipleDocumentsSignatureService
Retrieves the bytes of the data that need to be signed based on thetoSignDocuments
andparameters
. WhentoSignDocuments
contains 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, ASiCWithXAdESSignatureParameters parameters, SignatureValue signatureValue)Description copied from interface:MultipleDocumentsSignatureService
Signs 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
-
timestamp
public DSSDocument timestamp(List<DSSDocument> toTimestampDocuments, XAdESTimestampParameters parameters)Description copied from interface:MultipleDocumentsSignatureService
Timestamps the toSignDocuments with the provided signatureValue.- Parameters:
toTimestampDocuments
- list of documents to timestampparameters
- set of the driving timestamping parameters- Returns:
- the container with the added timestamp token
-
extendDocument
public DSSDocument extendDocument(DSSDocument toExtendDocument, ASiCWithXAdESSignatureParameters parameters)Description copied from interface:MultipleDocumentsSignatureService
Extends the level of the signatures in thetoExtendDocument
- Parameters:
toExtendDocument
- document to extendparameters
- set of the driving signing parameters- Returns:
- the extended signature
-
isSignatureFilename
- Specified by:
isSignatureFilename
in classAbstractASiCSignatureService<ASiCWithXAdESSignatureParameters,XAdESTimestampParameters>
-
getArchiveExtractor
- Specified by:
getArchiveExtractor
in classAbstractASiCSignatureService<ASiCWithXAdESSignatureParameters,XAdESTimestampParameters>
-
getExpectedSignatureExtension
-