Class ASiCContainerWithCAdESValidatorFactory
java.lang.Object
eu.europa.esig.dss.asic.cades.validation.ASiCContainerWithCAdESValidatorFactory
This class returns a relevant validator for an ASiC with CAdES container validation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.validation.SignedDocumentValidatorcreate(eu.europa.esig.dss.asic.common.ASiCContent asicContent) Creates aSignedDocumentValidatorfor the givenasicContenteu.europa.esig.dss.validation.SignedDocumentValidatorcreate(eu.europa.esig.dss.model.DSSDocument document) booleanisSupported(eu.europa.esig.dss.asic.common.ASiCContent asicContent) Verifies whether the providedASiCContentis supported by the underlying validator's classbooleanisSupported(eu.europa.esig.dss.model.DSSDocument document)
-
Constructor Details
-
ASiCContainerWithCAdESValidatorFactory
public ASiCContainerWithCAdESValidatorFactory()Default constructor
-
-
Method Details
-
isSupported
public boolean isSupported(eu.europa.esig.dss.model.DSSDocument document) -
isSupported
public boolean isSupported(eu.europa.esig.dss.asic.common.ASiCContent asicContent) 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
public eu.europa.esig.dss.validation.SignedDocumentValidator create(eu.europa.esig.dss.model.DSSDocument document) -
create
public eu.europa.esig.dss.validation.SignedDocumentValidator create(eu.europa.esig.dss.asic.common.ASiCContent asicContent) Creates aSignedDocumentValidatorfor the givenasicContent- Parameters:
asicContent-ASiCContentto be validated- Returns:
SignedDocumentValidator
-