Class VDSNCData

java.lang.Object
com.regula.documentreader.api.results.VDSNCData

public class VDSNCData extends Object
Visible Digital Seal for Non Constrained environments.
  • Method Details

    • getType

      public String getType()
      Visible Digital Seal use case type. Type is set to `icao.test` for Proof of Testing (data defined by CAPSCA), `icao.vacc` for Proof of Vaccination (data defined by WHO). Other Types may be added in the future.
      Returns:
      visible digital seal
    • getVersion

      public int getVersion()
      Returns:
      Visible Digital Seal use case version.
    • getIssuingCountry

      public String getIssuingCountry()
      Returns:
      Three letter code identifying the issuing state or organization.
    • getMessage

      public JSONObject getMessage()
      Returns:
      The message field contains the actual data as a dictionary (JSON).
    • getSignatureAlg

      public String getSignatureAlg()
      Returns:
      The signature algorithm used to produce the signature. ECDSA scheme.
    • getSignature

      public BytesData getSignature()
      Returns:
      The binary data of the verified digital signature.
    • getCertificate

      public BytesData getCertificate()
      Returns:
      The binary data of the signer certificate.
    • getNotifications

      public long[] getNotifications()
      The list of remarks occured during the scanning procedure.
      Returns:
      Each element is a `long` that belongs to the `enum eLDS_ParsingErrorCodes` or the `enum eLDS_ParsingNotificationCodes`.
    • getCertificateChain

      public List<CertificateChain> getCertificateChain()
      Returns:
      The certificate chain, used for the digital signature verification.
    • fromJson

      public static VDSNCData fromJson(String json)
    • fromJson

      public static VDSNCData fromJson(JSONObject object)
    • toJson

      public String toJson()
      Method convert object to string in json format
      Returns:
      string in json format