Uses of Class
se.digg.dgc.payload.v1.DGCSchemaException
-
Packages that use DGCSchemaException 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 DGCSchemaException in se.digg.dgc.payload.v1
Methods in se.digg.dgc.payload.v1 that throw DGCSchemaException Modifier and Type Method Description static byte[]
MapperUtils. toCBOREncoding(DigitalGreenCertificate dgc)
Given a HCERT payload its CBOR encoding is returned.static DigitalGreenCertificate
MapperUtils. toDigitalGreenCertificate(byte[] cbor)
Decodes a CBOR encoding to aDigitalGreenCertificate
.static DigitalGreenCertificate
MapperUtils. toDigitalGreenCertificate(String json)
Decodes a JSON string into aDigitalGreenCertificate
.static String
MapperUtils. toJSONString(DigitalGreenCertificate dgc)
Given a HCERT payload its string JSON representation is returned. -
Uses of DGCSchemaException in se.digg.dgc.service
Methods in se.digg.dgc.service that throw DGCSchemaException 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.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 DGCSchemaException in se.digg.dgc.service.impl
Methods in se.digg.dgc.service.impl that throw DGCSchemaException 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.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.
-