Uses of Class
se.digg.dgc.payload.v1.DigitalGreenCertificate
-
Packages that use DigitalGreenCertificate Package Description se.digg.dgc.payload.v1 Generated Java code for the Digital Green Certificate schema.se.digg.dgc.service Contains top-level interfaces and classes for issuing and validating Digital Green Certificates.se.digg.dgc.service.impl Implementation classes for the DGC services. -
-
Uses of DigitalGreenCertificate in se.digg.dgc.payload.v1
Methods in se.digg.dgc.payload.v1 that return DigitalGreenCertificate Modifier and Type Method Description static DigitalGreenCertificate
MapperUtils. toDigitalGreenCertificate(byte[] cbor)
Decodes a CBOR encoding to aDigitalGreenCertificate
.static DigitalGreenCertificate
MapperUtils. toDigitalGreenCertificate(String json)
Decodes a JSON string into aDigitalGreenCertificate
.DigitalGreenCertificate
DigitalGreenCertificate. withCert(Cert cert)
DigitalGreenCertificate
DigitalGreenCertificate. withRec(List<Rec> rec)
DigitalGreenCertificate
DigitalGreenCertificate. withSub(Sub sub)
DigitalGreenCertificate
DigitalGreenCertificate. withTst(List<Tst> tst)
DigitalGreenCertificate
DigitalGreenCertificate. withVac(List<Vac> vac)
Methods in se.digg.dgc.payload.v1 with parameters of type DigitalGreenCertificate Modifier and Type Method Description static byte[]
MapperUtils. toCBOREncoding(DigitalGreenCertificate dgc)
Given a HCERT payload its CBOR encoding is returned.static String
MapperUtils. toJSONString(DigitalGreenCertificate dgc)
Given a HCERT payload its string JSON representation is returned. -
Uses of DigitalGreenCertificate in se.digg.dgc.service
Methods in se.digg.dgc.service that return DigitalGreenCertificate Modifier and Type Method Description DigitalGreenCertificate
DGCDecoder. decode(String base45)
Given the base45-encoding of a signed DGC the method verifies and decodes it into the DGC payload representation.DigitalGreenCertificate
DGCBarcodeDecoder. decodeBarcode(byte[] image)
Given a barcode image the method verifies amd decodes the contents into its DGC payload representation.DigitalGreenCertificate
DGCDecoder. decodeRaw(byte[] cwt)
Verifies a "raw" DGC (i.e., a signed CWT holding the DGC payload) and decodes it to the actual DGC payload.Methods in se.digg.dgc.service with parameters of type DigitalGreenCertificate Modifier and Type Method Description String
DGCEncoder. encode(DigitalGreenCertificate dgc, Instant expiration)
Based on the DGC payload and a expiration time, the method encodes the payload to CBOR, signs it, deflates it, and delivers it in Base45 encoding (with a HCERT header).Barcode
DGCBarcodeEncoder. encodeToBarcode(DigitalGreenCertificate dgc, Instant expiration)
Based on the DGC payload and a expiration time, the method encodes the payload to CBOR, signs it, deflates it, Base45 encodes it, and finally delivers it as a barcode.byte[]
DGCEncoder. sign(DigitalGreenCertificate dgc, Instant expiration)
Given the DGC payload the method creates a CWT and signs it. -
Uses of DigitalGreenCertificate in se.digg.dgc.service.impl
Methods in se.digg.dgc.service.impl that return DigitalGreenCertificate Modifier and Type Method Description DigitalGreenCertificate
DefaultDGCDecoder. decode(String base45)
Given the base45-encoding of a signed DGC the method verifies and decodes it into the DGC payload representation.DigitalGreenCertificate
DefaultDGCBarcodeDecoder. decodeBarcode(byte[] image)
Given a barcode image the method verifies amd decodes the contents into its DGC payload representation.DigitalGreenCertificate
DefaultDGCDecoder. decodeRaw(byte[] cwt)
Verifies a "raw" DGC (i.e., a signed CWT holding the DGC payload) and decodes it to the actual DGC payload.Methods in se.digg.dgc.service.impl with parameters of type DigitalGreenCertificate Modifier and Type Method Description String
DefaultDGCEncoder. encode(DigitalGreenCertificate dgc, Instant expiration)
Based on the DGC payload and a expiration time, the method encodes the payload to CBOR, signs it, deflates it, and delivers it in Base45 encoding (with a HCERT header).Barcode
DefaultDGCBarcodeEncoder. encodeToBarcode(DigitalGreenCertificate dgc, Instant expiration)
Based on the DGC payload and a expiration time, the method encodes the payload to CBOR, signs it, deflates it, Base45 encodes it, and finally delivers it as a barcode.byte[]
DefaultDGCEncoder. sign(DigitalGreenCertificate dgc, Instant expiration)
Given the DGC payload the method creates a CWT and signs it.
-