Class PivotFetcher
java.lang.Object
com.itextpdf.signatures.validation.lotl.PivotFetcher
This class fetches and validates pivot files from a List of Trusted Lists (Lotl) XML.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Result class encapsulates the result of the pivot fetching and validation process. -
Constructor Summary
ConstructorsConstructorDescriptionPivotFetcher
(LotlService service) Constructs a PivotFetcher with the specified LotlService and ValidatorChainBuilder. -
Method Summary
Modifier and TypeMethodDescriptiondownloadAndValidatePivotFiles
(byte[] lotlXml, List<Certificate> certificates) Fetches and validates pivot files from the provided Lotl XML.
-
Constructor Details
-
PivotFetcher
Constructs a PivotFetcher with the specified LotlService and ValidatorChainBuilder.- Parameters:
-
service
- the LotlService used to retrieve resources
-
-
Method Details
-
downloadAndValidatePivotFiles
public PivotFetcher.Result downloadAndValidatePivotFiles(byte[] lotlXml, List<Certificate> certificates) Fetches and validates pivot files from the provided Lotl XML.- Parameters:
-
lotlXml
- the byte array of the Lotl XML -
certificates
- the list of trusted certificates - Returns:
- a Result object containing the validation result and report items
-