Class XAdESDocumentExtender
java.lang.Object
eu.europa.esig.dss.extension.SignedDocumentExtender
eu.europa.esig.dss.extension.AbstractDocumentExtender<XAdESSignatureParameters, XAdESTimestampParameters>
eu.europa.esig.dss.xades.extension.XAdESDocumentExtender
- All Implemented Interfaces:
DocumentExtender
public class XAdESDocumentExtender
extends AbstractDocumentExtender<XAdESSignatureParameters, XAdESTimestampParameters>
XAdES specific implementation of a
eu.europa.esig.dss.spi.augmentation.DocumentExtender.-
Field Summary
Fields inherited from class AbstractDocumentExtender
documentFields inherited from class SignedDocumentExtender
certificateVerifier, services, tspSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method created a new instance ofDocumentSignatureServiceprotected XAdESSignatureParametersThis method returns a new instance of empty signature parameters, according to the given format implementationGets the signature form for the current implementationbooleanisSupported(DSSDocument dssDocument) Checks if the document is supported by the current signature extenderprotected booleanisSupportedParameters(SerializableSignatureParameters parameters) This method verifies whether the provided signature parameters are supported by the current implementationprotected booleanisSupportedService(DocumentSignatureService<?, ?> service) This method verifies whether the provided document signature service is supported by the current implementationMethods inherited from class AbstractDocumentExtender
extendDocument, extendDocument, extendDocument, extendDocument, fillSignatureParameters, getSignatureLevel, initSignatureParameters, initSignatureServiceMethods inherited from class SignedDocumentExtender
fromDocument, isASiC, setCertificateVerifier, setServices, setTspSource
-
Constructor Details
-
XAdESDocumentExtender
Default constructor- Parameters:
document-DSSDocumentto be extended
-
-
Method Details
-
createSignatureService
protected DocumentSignatureService<XAdESSignatureParameters, XAdESTimestampParameters> createSignatureService()Description copied from class:AbstractDocumentExtenderThis method created a new instance ofDocumentSignatureService- Specified by:
createSignatureServicein classAbstractDocumentExtender<XAdESSignatureParameters, XAdESTimestampParameters>- Returns:
DocumentSignatureService
-
isSupported
Description copied from interface:DocumentExtenderChecks if the document is supported by the current signature extender- Parameters:
dssDocument-DSSDocumentto check- Returns:
- TRUE if the document is supported, FALSE otherwise
-
emptySignatureParameters
Description copied from class:AbstractDocumentExtenderThis method returns a new instance of empty signature parameters, according to the given format implementation- Specified by:
emptySignatureParametersin classAbstractDocumentExtender<XAdESSignatureParameters, XAdESTimestampParameters>- Returns:
SerializableSignatureParameters
-
isSupportedParameters
Description copied from class:AbstractDocumentExtenderThis method verifies whether the provided signature parameters are supported by the current implementation- Specified by:
isSupportedParametersin classAbstractDocumentExtender<XAdESSignatureParameters, XAdESTimestampParameters>- Parameters:
parameters-SerializableSignatureParametersto check- Returns:
- TRUE if the parameters are supported by the current implementation, FALSE otherwise
-
isSupportedService
Description copied from class:AbstractDocumentExtenderThis method verifies whether the provided document signature service is supported by the current implementation- Specified by:
isSupportedServicein classAbstractDocumentExtender<XAdESSignatureParameters, XAdESTimestampParameters>- Parameters:
service-DocumentSignatureServiceto check- Returns:
- TRUE if the service is supported by the current implementation, FALSE otherwise
-
getSignatureForm
Description copied from class:SignedDocumentExtenderGets the signature form for the current implementation- Specified by:
getSignatureFormin classSignedDocumentExtender- Returns:
SignatureForm
-