Class ASiCWithCAdESDocumentExtender
java.lang.Object
eu.europa.esig.dss.extension.SignedDocumentExtender
eu.europa.esig.dss.extension.AbstractDocumentExtender<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters>
eu.europa.esig.dss.asic.cades.extension.ASiCWithCAdESDocumentExtender
- All Implemented Interfaces:
DocumentExtender
public class ASiCWithCAdESDocumentExtender
extends AbstractDocumentExtender<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters>
ASiC with CAdES container 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 TypeMethodDescriptionprotected DocumentSignatureService<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters> This method created a new instance ofDocumentSignatureServiceprotected ASiCWithCAdESSignatureParametersThis method returns a new instance of empty signature parameters, according to the given format implementationGets the signature form for the current implementationbooleanisASiC()Gets whether the document to be extended represents an ASiC containerbooleanisSupported(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, setCertificateVerifier, setServices, setTspSource
-
Constructor Details
-
ASiCWithCAdESDocumentExtender
Default constructor- Parameters:
document-DSSDocumentto be extended
-
-
Method Details
-
createSignatureService
protected DocumentSignatureService<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters> createSignatureService()Description copied from class:AbstractDocumentExtenderThis method created a new instance ofDocumentSignatureService- Specified by:
createSignatureServicein classAbstractDocumentExtender<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters>- 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<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters>- 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<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters>- 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<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters>- 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
-
isASiC
public boolean isASiC()Description copied from class:SignedDocumentExtenderGets whether the document to be extended represents an ASiC container- Overrides:
isASiCin classSignedDocumentExtender- Returns:
- TRUE if the document is an ASiC container, FALSE otherwise
-