lkm

package
v0.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package lkm provides license key verification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VerifyResult

type VerifyResult struct {
	ID           string
	Issuer       string
	IssuedAt     string
	Expiry       string
	Capabilities []string
}

VerifyResult contains the verified license key information.

func VerifyLicenseKey

func VerifyLicenseKey(jwksData, jwtData, revokedKeysJSON []byte, skus ...string) (*VerifyResult, error)

VerifyLicenseKey verifies a signed JWT license key using the provided JWKS public key set. It validates the signature, claims, expiry, checks that the license is not revoked (if revokedKeysJSON is non-nil), and checks that the license contains all required SKU capabilities.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL