Class ASiCContainerWithCAdESValidatorFactory
java.lang.Object
eu.europa.esig.dss.asic.cades.validation.ASiCContainerWithCAdESValidatorFactory
- All Implemented Interfaces:
DocumentValidatorFactory
public class ASiCContainerWithCAdESValidatorFactory
extends Object
implements DocumentValidatorFactory
This class returns a relevant validator for an ASiC with CAdES container validation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ASiCContent asicContent) Creates aSignedDocumentValidatorfor the givenasicContentcreate(DSSDocument document) This method instantiates aDocumentValidatorwith the given documentbooleanisSupported(ASiCContent asicContent) Verifies whether the providedASiCContentis supported by the underlying validator's classbooleanisSupported(DSSDocument document) This method tests if the current implementation ofDocumentValidatorsupports the given document
-
Constructor Details
-
ASiCContainerWithCAdESValidatorFactory
public ASiCContainerWithCAdESValidatorFactory()Default constructor
-
-
Method Details
-
isSupported
Description copied from interface:DocumentValidatorFactoryThis method tests if the current implementation ofDocumentValidatorsupports the given document- Specified by:
isSupportedin interfaceDocumentValidatorFactory- Parameters:
document- the document to be tested- Returns:
- true, if the
DocumentValidatorsupports the given document
-
isSupported
Verifies whether the providedASiCContentis supported by the underlying validator's class- Parameters:
asicContent-ASiCContent- Returns:
- TRUE if the ASiC Content is supported, FALSE otherwise
-
create
Description copied from interface:DocumentValidatorFactoryThis method instantiates aDocumentValidatorwith the given document- Specified by:
createin interfaceDocumentValidatorFactory- Parameters:
document- the document to be used for theDocumentValidatorcreation- Returns:
- an instance of
DocumentValidatorwith the document
-
create
Creates aSignedDocumentValidatorfor the givenasicContent- Parameters:
asicContent-ASiCContentto be validated- Returns:
SignedDocumentValidator
-