NAME
Health::SHC::Validate - Validate the Signature of the Smart Health Card data
SYNOPSIS
use Health::SHC::Validate;
my $shc_valid = Health::SHC::Validate->new();
my $data = $shc_valid->get_valid_data($qr, $keys_json);
DESCRIPTION
This perl module validates the signature of the JSON Web Token containing the Smart Health Card data.
PREREQUISITES
COPYRIGHT
The following copyright notice applies to all the files provided in this distribution, including binary files, unless explicitly noted otherwise.
Copyright 2021 - 2024 Timothy Legge <timlegge@gmail.com>
LICENCE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
METHODS
new(...)
Constructor; see OPTIONS above.
get_valid_data($shc)
Validates the signature of the Smart Health Card URI data from the QR code and returns a hash of the valid data.
Arguments: $shc: string Smart Health Card (shc:/) URI $keys: string filename of custom keys in JSON format
Returns: hash of data from the shc:/ data