Module license

Module license 

Source
Expand description

PhyTrace License Validation Module.

Provides JWT-based license validation with:

  • RS256 signature verification using embedded PhyWare public key
  • Expiry checking with 72-hour grace period
  • Dev mode bypass for local testing
  • Online validation heartbeat support

Structs§

LicenseClaims
Parsed claims from a license JWT
LicenseMetadata
License metadata to be injected into events
LicenseValidator
Validates PhyTrace license tokens

Enums§

LicenseError
License validation errors
LicenseStatus
Status of the license validation

Constants§

DEFAULT_GRACE_PERIOD_HOURS
Default grace period (72 hours)
DEV_MODE_ENV
Environment variable for dev mode bypass
PHYWARE_PUBLIC_KEY
PhyWare public key for RS256 JWT verification (placeholder) In production, this would be the actual RSA public key