Crate moq_token

Crate moq_token 

Source
Expand description

JWT token generation and validation for MoQ authentication.

Create and verify JWT tokens used for authorizing publish/subscribe operations in MoQ. Tokens specify which broadcast paths a client can publish to and consume from.

See Claims for the JWT claims structure and Key for key management.

Structs§

Claims
Key
JWK, almost to spec (https://datatracker.ietf.org/doc/html/rfc7517) but not quite the same because it’s annoying to implement.
RsaAdditionalPrime
Additional prime information for multi-prime RSA keys.
RsaPrivateKey
RSA private key parameters.
RsaPublicKey
RSA public key parameters.

Enums§

Algorithm
A subset of jsonwebtoken algorithms.
EllipticCurve
Supported elliptic curves for EC and OKP key types.
KeyOperation
Cryptographic operations that a key can perform.
KeyType
https://datatracker.ietf.org/doc/html/rfc7518#section-6