Skip to main content

Crate mz_license_keys

Crate mz_license_keys 

Source

Modulesยง

signing ๐Ÿ”’

Structsยง

IntermediatePayload ๐Ÿ”’
Payload ๐Ÿ”’
ValidatedIntermediate ๐Ÿ”’
ValidatedLicenseKey

Enumsยง

ExpirationBehavior

Constantsยง

INTERMEDIATE_HEADER ๐Ÿ”’
INTERMEDIATE_TYP ๐Ÿ”’
ISSUER ๐Ÿ”’
PUBLIC_KEYS ๐Ÿ”’
REVOKED_KEYS ๐Ÿ”’

Functionsยง

get_pubkey_pem
is_default ๐Ÿ”’
make_intermediate_jwt
Signs an intermediate JWT with the root key root_key_id that allows license keys signed by the private half of public_key_pem to validate.
make_license_key
Signs a license key with key_id.
validate
Validates license_key against the root public keys, falling back to the intermediate JWT embedded in its header.
validate_intermediate ๐Ÿ”’
Returns the claims of intermediate_jwt if a root key signed it.
validate_with_pubkey ๐Ÿ”’
validate_with_pubkey_v1 ๐Ÿ”’
validate_with_roots ๐Ÿ”’