Class CountrySpecificLotlFetcher.Result
java.lang.Object
com.itextpdf.signatures.validation.lotl.CountrySpecificLotlFetcher.Result
- All Implemented Interfaces:
-
IJsonSerializable
- Enclosing class:
- CountrySpecificLotlFetcher
Represents the result of fetching and validating country-specific LOTLs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a unique identifier for the country-specific LOTL based on its scheme territory and TSL location.DeserializesJsonValueintoCountrySpecificLotlFetcher.Result.Gets the list of service contexts associated with the country-specific LOTL.Gets the country-specific LOTL that was fetched and validated.Gets the local validation report.voidsetContexts(List<IServiceContext> contexts) Sets the list of service contexts associated with the country-specific LOTL.setCountrySpecificLotl(CountrySpecificLotl countrySpecificLotl) Sets the country-specific LOTL that was fetched and validated.voidsetLocalReport(ValidationReport localReport) Sets the local validation report.toJson()Serializes object to JSON AST.
-
Constructor Details
-
Result
public Result()Constructs a new Result object. Initializes the report items list, local report, and contexts list.
-
-
Method Details
-
getLocalReport
Gets the local validation report.- Returns:
- the ValidationReport object containing the results of local validation
-
setLocalReport
Sets the local validation report.- Parameters:
-
localReport- the ValidationReport object to set
-
getContexts
Gets the list of service contexts associated with the country-specific LOTL.- Returns:
- a list of IServiceContext objects representing the service contexts
-
setContexts
Sets the list of service contexts associated with the country-specific LOTL.- Parameters:
-
contexts- a list of IServiceContext objects to set
-
getCountrySpecificLotl
Gets the country-specific LOTL that was fetched and validated.- Returns:
- the CountrySpecificLotl object representing the country-specific LOTL
-
setCountrySpecificLotl
public CountrySpecificLotlFetcher.Result setCountrySpecificLotl(CountrySpecificLotl countrySpecificLotl) Sets the country-specific LOTL that was fetched and validated.- Parameters:
-
countrySpecificLotl- the CountrySpecificLotl object to set - Returns:
- same result instance.
-
createUniqueIdentifier
Creates a unique identifier for the country-specific LOTL based on its scheme territory and TSL location.- Returns:
- a string representing the unique identifier for the country-specific LOTL
-
toJson
Serializes object to JSON AST..- Specified by:
-
toJsonin interfaceIJsonSerializable - Returns:
-
JsonValueserialized object
-
fromJson
DeserializesJsonValueintoCountrySpecificLotlFetcher.Result.- Parameters:
-
jsonValue-JsonValueto deserialize - Returns:
-
deserialized
CountrySpecificLotlFetcher.Result
-