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
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(ASiCContent asicContent) Creates aSignedDocumentValidator
for the givenasicContent
create
(DSSDocument document) This method instantiates aDocumentValidator
with the given documentboolean
isSupported
(ASiCContent asicContent) Verifies whether the providedASiCContent
is supported by the underlying validator's classboolean
isSupported
(DSSDocument document) This method tests if the current implementation ofDocumentValidator
supports the given document
-
Constructor Details
-
ASiCContainerWithCAdESValidatorFactory
public ASiCContainerWithCAdESValidatorFactory()Default constructor
-
-
Method Details
-
isSupported
Description copied from interface:DocumentValidatorFactory
This method tests if the current implementation ofDocumentValidator
supports the given document- Specified by:
isSupported
in interfaceDocumentValidatorFactory
- Parameters:
document
- the document to be tested- Returns:
- true, if the
DocumentValidator
supports the given document
-
isSupported
Verifies whether the providedASiCContent
is 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:DocumentValidatorFactory
This method instantiates aDocumentValidator
with the given document- Specified by:
create
in interfaceDocumentValidatorFactory
- Parameters:
document
- the document to be used for theDocumentValidator
creation- Returns:
- an instance of
DocumentValidator
with the document
-
create
Creates aSignedDocumentValidator
for the givenasicContent
- Parameters:
asicContent
-ASiCContent
to be validated- Returns:
SignedDocumentValidator
-