The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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

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