Package model is a model abstraction of health authorities.
- type HealthAuthority
- type HealthAuthorityKey
type HealthAuthority ¶
HealthAuthority represents a public health authority that is authorized to issue diagnosis verification certificates accepted by this server.
SetJWKS sets the optional JwksURI property of the HealthAuthority.
type HealthAuthorityKey ¶
HealthAuthorityKey represents a public key version for a given health authority.
IsValid returns true if the key is valid based on the current time.
IsValidAt returns true if the key is valid at a specific point in time.
PublicKey decodes the PublicKeyPEM text and returns the `*ecdsa.PublicKey` This system only supports verifying ECDSA JWTs, `alg: ES256`.