Skip to main content

Module verifier

Module verifier 

Source
Expand description

License verification functionality (client-side)

This module provides license verification using the pluggable cryptographic architecture. It automatically selects the appropriate signature algorithm based on the algorithm identifier stored in the license.

§Example

use licenz_core::verifier::{CryptoVerifier, LicenseVerifier};

// New algorithm-agnostic verifier (recommended)
let verifier = CryptoVerifier::from_pem(public_key_pem).unwrap();
let result = verifier.validate(&license);

// Legacy RSA-only verifier (backward compatible)
let verifier = LicenseVerifier::from_pem(public_key_pem).unwrap();

Structs§

CryptoVerifier
Algorithm-agnostic license verifier that automatically selects the correct algorithm
LicenseVerifier
License verifier for validating licenses
ValidationResult
Validation result with detailed status

Functions§

detect_license_format
Detect the format of a license file