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.
Click to show internal directories.
Click to hide internal directories.