Interface DGCDecoder

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

    public interface DGCDecoder
    Service for decoding a Digital Green Certificate from its image representation into the actual DGC 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
      DigitalGreenCertificate decode​(String base45)
      Given the base45-encoding of a signed DGC the method verifies and decodes it into the DGC payload representation.
      DigitalGreenCertificate decodeRaw​(byte[] cwt)
      Verifies a "raw" DGC (i.e., a signed CWT holding the DGC payload) and decodes it to the actual DGC payload.
      byte[] decodeRawToBytes​(byte[] cwt)
      Verifies a "raw" DGC (i.e., a signed CWT holding the DGC payload) and returns the CBOR encoding of the DGC payload.
      byte[] decodeToBytes​(String base45)
      Given the base45-encoding of a signed DGC the method verifies and decodes it into the CBOR encoding of the DGC payload.