Class SignedDocumentExtender
java.lang.Object
eu.europa.esig.dss.extension.SignedDocumentExtender
- Direct Known Subclasses:
AbstractDocumentExtender
This class contains common code for signature augmentation utilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected eu.europa.esig.dss.spi.validation.CertificateVerifierThe reference to the certificate verifier.protected DocumentSignatureService<?,?>[] (Optional) Document signature services.protected eu.europa.esig.dss.spi.x509.tsp.TSPSourceThe source to be used for a timestamp token request, when applicable. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.model.DSSDocumentextendDocument(eu.europa.esig.dss.enumerations.SignatureProfile arg0) eu.europa.esig.dss.model.DSSDocumentextendDocument(eu.europa.esig.dss.enumerations.SignatureProfile arg0, eu.europa.esig.dss.model.SerializableSignatureParameters... arg1) eu.europa.esig.dss.model.DSSDocumentextendDocument(eu.europa.esig.dss.enumerations.SignatureProfile arg0, List<eu.europa.esig.dss.model.DSSDocument> arg1) eu.europa.esig.dss.model.DSSDocumentextendDocument(eu.europa.esig.dss.enumerations.SignatureProfile arg0, List<eu.europa.esig.dss.model.DSSDocument> arg1, eu.europa.esig.dss.model.SerializableSignatureParameters... arg2) static SignedDocumentExtenderfromDocument(eu.europa.esig.dss.model.DSSDocument dssDocument) This method guesses the document format and returns an appropriate document reader.abstract eu.europa.esig.dss.enumerations.SignatureFormGets the signature form for the current implementationbooleanisASiC()Gets whether the document to be extended represents an ASiC containerbooleanisSupported(eu.europa.esig.dss.model.DSSDocument arg0) voidsetCertificateVerifier(eu.europa.esig.dss.spi.validation.CertificateVerifier certificateVerifier) voidsetServices(DocumentSignatureService<?, ?>... services) (Optional) Sets document signature services.voidsetTspSource(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource)
-
Field Details
-
certificateVerifier
protected eu.europa.esig.dss.spi.validation.CertificateVerifier certificateVerifierThe reference to the certificate verifier. The current DSS implementation proposesCommonCertificateVerifier. This verifier encapsulates the references to different sources used in the signature validation process. -
tspSource
protected eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSourceThe source to be used for a timestamp token request, when applicable. -
services
(Optional) Document signature services. When defined, the applicable instance of a corresponding service will be used. If no suitable service found, a new service instance will be created.
-
-
Constructor Details
-
SignedDocumentExtender
protected SignedDocumentExtender()Empty constructor
-
-
Method Details
-
fromDocument
This method guesses the document format and returns an appropriate document reader.- Parameters:
dssDocument- The instance ofDSSDocumentto validate- Returns:
- returns the specific instance of
DocumentReaderin terms of the document type
-
setCertificateVerifier
public void setCertificateVerifier(eu.europa.esig.dss.spi.validation.CertificateVerifier certificateVerifier) -
setTspSource
public void setTspSource(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource) -
setServices
(Optional) Sets document signature services. When defined, the applicable instance of a corresponding service will be used. If no suitable service found, a new service instance will be created.- Parameters:
services- an array ofDocumentSignatureServices
-
getSignatureForm
public abstract eu.europa.esig.dss.enumerations.SignatureForm getSignatureForm()Gets the signature form for the current implementation- Returns:
SignatureForm
-
isASiC
public boolean isASiC()Gets whether the document to be extended represents an ASiC container- Returns:
- TRUE if the document is an ASiC container, FALSE otherwise
-
isSupported
boolean isSupported(eu.europa.esig.dss.model.DSSDocument arg0) -
extendDocument
eu.europa.esig.dss.model.DSSDocument extendDocument(eu.europa.esig.dss.enumerations.SignatureProfile arg0) -
extendDocument
eu.europa.esig.dss.model.DSSDocument extendDocument(eu.europa.esig.dss.enumerations.SignatureProfile arg0, List<eu.europa.esig.dss.model.DSSDocument> arg1) -
extendDocument
eu.europa.esig.dss.model.DSSDocument extendDocument(eu.europa.esig.dss.enumerations.SignatureProfile arg0, eu.europa.esig.dss.model.SerializableSignatureParameters... arg1) -
extendDocument
eu.europa.esig.dss.model.DSSDocument extendDocument(eu.europa.esig.dss.enumerations.SignatureProfile arg0, List<eu.europa.esig.dss.model.DSSDocument> arg1, eu.europa.esig.dss.model.SerializableSignatureParameters... arg2)
-