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 classResult 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.getPivotsUrlList(byte[] lotlXml) Gets list of pivots xml files, including OJ entries.voidsetCurrentJournalUri(String currentJournalUri) SetsStringconstant representing currently used Official Journal publication.
-
Constructor Details
-
PivotFetcher
Constructs a PivotFetcher with the specified LotlService and ValidatorChainBuilder.- Parameters:
-
service- the LotlService used to retrieve resources
-
-
Method Details
-
setCurrentJournalUri
SetsStringconstant representing currently used Official Journal publication.- Parameters:
-
currentJournalUri-Stringconstant representing currently used Official Journal publication
-
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
-
getPivotsUrlList
Gets list of pivots xml files, including OJ entries.- Parameters:
-
lotlXml-bytearray representing main LOTL file - Returns:
- list of pivots xml files, including OJ entries
-