Class DGCSignatureVerifier.Result

  • Enclosing interface:
    DGCSignatureVerifier

    public static class DGCSignatureVerifier.Result
    extends Object
    Represents the successful result of a HCERT signature verification.
    • Constructor Detail

      • Result

        public Result​(byte[] dgcPayload,
                      X509Certificate signerCertificate,
                      String country,
                      Instant issuedAt,
                      Instant expires)
        Constructor.
        Parameters:
        dgcPayload - the CBOR encoded DGC payload
        signerCertificate - the certificate that was used to verify the signature
        country - the ISO-3166 code for the issuing country
        issuedAt - the issuance time of the DGC
        expires - the expiration time of the DGC
    • Method Detail

      • getDgcPayload

        public byte[] getDgcPayload()
        Gets the CBOR encoded DGC payload.
        Returns:
        the CBOR encoded DGC payload
      • getSignerCertificate

        public X509Certificate getSignerCertificate()
        Gets the certificate that was used to verify the signature.
        Returns:
        the certificate used to verify the signature
      • getCountry

        public String getCountry()
        Gets the ISO-3166 code for the issuing country.
        Returns:
        country code
      • getIssuedAt

        public Instant getIssuedAt()
        Gets the issuance time of the HCERT.
        Returns:
        issuance time
      • getExpires

        public Instant getExpires()
        Gets the expiration time of the HCERT.
        Returns:
        the expiration time