Class VDSNCData


  • public class VDSNCData
    extends java.lang.Object
    Visible Digital Seal for Non Constrained environments.
    • Method Detail

      • getType

        public java.lang.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 java.lang.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 java.lang.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.
      • getCertificateChain

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

        public static VDSNCData fromJson​(java.lang.String json)
      • fromJson

        public static VDSNCData fromJson​(JSONObject object)
      • toJson

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