Class CountrySpecificLotl

java.lang.Object
com.itextpdf.signatures.validation.lotl.CountrySpecificLotl
All Implemented Interfaces:
IJsonSerializable

public final class CountrySpecificLotl extends Object implements IJsonSerializable
This class represents a country-specific TSL (Trusted List) location. It contains the scheme territory, the TSL location URL and MIME type.
  • Constructor Details

    • CountrySpecificLotl

      public CountrySpecificLotl (String schemeTerritory, String tslLocation, String mimeType)
      Creates an instance of country specific LOTL location representation.
      Parameters:
      schemeTerritory - scheme territory of this country-specific TSL
      tslLocation - TSL location URL of this country-specific TSL
      mimeType - MIME type of the TSL location
  • Method Details

    • getSchemeTerritory

      public String getSchemeTerritory()
      Returns the scheme territory of this country-specific TSL.
      Returns:
      the scheme territory
    • getTslLocation

      public String getTslLocation()
      Returns the TSL location URL of this country-specific TSL.
      Returns:
      the TSL location URL
    • getMimeType

      public String getMimeType()
      Returns the MIME type of the TSL location.
      Returns:
      the MIME type of the TSL location
    • toJson

      public JsonValue toJson()
      Serializes object to JSON AST..
      Specified by:
      toJson in interface IJsonSerializable
      Returns:
      JsonValue serialized object
    • fromJson

      public static CountrySpecificLotl fromJson (JsonValue jsonValue)
      Deserializes JsonValue into CountrySpecificLotl.
      Parameters:
      jsonValue - JsonValue to deserialize
      Returns:
      deserialized CountrySpecificLotl
    • toString

      public String toString()
      Overrides:
      toString in class Object