Package eu.europa.esig.dss.validation
Interface DocumentValidatorFactory
- All Known Implementing Classes:
ASiCContainerWithCAdESValidatorFactory
,ASiCContainerWithXAdESValidatorFactory
,CMSDocumentValidatorFactory
,DetachedTimestampValidatorFactory
,JAdESDocumentValidatorFactory
,PDFADocumentValidatorFactory
,PDFDocumentValidatorFactory
,XMLDocumentValidatorFactory
public interface DocumentValidatorFactory
This interface defines the factory to create a
DocumentValidator
for
a given DSSDocument
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(DSSDocument document) This method instantiates aDocumentValidator
with the given documentboolean
isSupported
(DSSDocument document) This method tests if the current implementation ofDocumentValidator
supports the given document
-
Method Details
-
isSupported
This method tests if the current implementation ofDocumentValidator
supports the given document- Parameters:
document
- the document to be tested- Returns:
- true, if the
DocumentValidator
supports the given document
-
create
This method instantiates aDocumentValidator
with the given document- Parameters:
document
- the document to be used for theDocumentValidator
creation- Returns:
- an instance of
DocumentValidator
with the document
-