Interface DGCDecoder

  • All Known Subinterfaces:
    DGCBarcodeDecoder
    All Known Implementing Classes:
    DefaultDGCBarcodeDecoder, DefaultDGCDecoder

    public interface DGCDecoder
    Service for decoding a Digital Covid Certificate from its image representation into the actual DCC payload.
    Author:
    Martin Lindström (martin@idsec.se), Henrik Bengtsson (extern.henrik.bengtsson@digg.se), Henric Norlander (extern.henric.norlander@digg.se)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      DigitalCovidCertificate decode​(String base45)
      Given the base45-encoding of a signed DCC the method verifies and decodes it into the DCC payload representation.
      DigitalCovidCertificate decodeRaw​(byte[] cwt)
      Verifies a "raw" DCC (i.e., a signed CWT holding the DCC payload) and decodes it to the actual DCC payload.
      byte[] decodeRawToBytes​(byte[] cwt)
      Verifies a "raw" DCC (i.e., a signed CWT holding the DCC payload) and returns the CBOR encoding of the DCC payload.
      byte[] decodeToBytes​(String base45)
      Given the base45-encoding of a signed DCC the method verifies and decodes it into the CBOR encoding of the DCC payload.