KHealthCertificate

Search for usage in LXR

KHealthCertificate Class Reference

#include <khealthcertificate.h>

Public Types

enum  CertificateType { Vaccination , Test , Recovery }
 
enum  CertificateValidation { Valid , Partial , Invalid , Unknown }
 
enum  SignatureValidation { ValidSignature , InvalidSignature , UnknownSignature , UncheckedSignature }
 

Static Public Member Functions

static QDateTime relevantUntil (const QVariant &certificate)
 

Detailed Description

Dummy RTTI for QML, which doesn't support instanceof on Q_GADGETs...

Definition at line 13 of file khealthcertificate.h.

Member Enumeration Documentation

◆ CertificateType

enum KHealthCertificate::CertificateType

Definition at line 17 of file khealthcertificate.h.

◆ CertificateValidation

enum KHealthCertificate::CertificateValidation

Definition at line 24 of file khealthcertificate.h.

◆ SignatureValidation

Result of attempting to verify the cryptographic signature of a certificate.

Enumerator
ValidSignature 

signature is valid

InvalidSignature 

signature is invalid

UnknownSignature 

signature verification was attempted but didn't yield a result, e.g. due to a missing certificate of signing entity.

UncheckedSignature 

signature verification was not attempted, e.g. as it's not yet implemented for the specific certificate type.

Definition at line 33 of file khealthcertificate.h.

Member Function Documentation

◆ relevantUntil()

QDateTime KHealthCertificate::relevantUntil ( const QVariant & certificate)
static

Returns the last date until certificate is relevant.

That is, past the returned date, the certificate is considered expired and thus provides no or only very limited use anymore. This is useful for sorting a set of certificate in the UI in a meaningful way.

Definition at line 14 of file khealthcertificate.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.