Package eu.europa.esig.dss.validation
Interface DocumentValidatorFactory
-
- All Known Implementing Classes:
ASiCContainerWithCAdESValidatorFactory,ASiCContainerWithXAdESValidatorFactory,CMSDocumentValidatorFactory,PDFDocumentValidatorFactory,XMLDocumentValidatorFactory
public interface DocumentValidatorFactoryThis interface defines the factory to create aDocumentValidatorfor a givenDSSDocument
-
-
Method Summary
Modifier and Type Method Description SignedDocumentValidatorcreate(DSSDocument document)This methods instantiates aDocumentValidatorwith the given documentbooleanisSupported(DSSDocument document)This method tests if the current implementation ofDocumentValidatorsupports the given document
-
-
-
Method Detail
-
isSupported
boolean isSupported(DSSDocument document)
This method tests if the current implementation ofDocumentValidatorsupports the given document- Parameters:
document- the document to be tested- Returns:
- true, if the
DocumentValidatorsupports the given document
-
create
SignedDocumentValidator create(DSSDocument document)
This methods instantiates aDocumentValidatorwith the given document- Parameters:
document- the document to be used for theDocumentValidatorcreation- Returns:
- an instance of
DocumentValidatorwith the document
-
-