The classes generate and verify license strings using a public/private key pair which clients must provide to these classes.
A license consist of a product ID which clients interprete themselves, validity date and a license holder string. Latter is again subject to clients to define.
A license is generated using the private key which must be kept secret and shall never
be distributed to license holders or with applications. The
is responsible for creating such licenses. The
verifies the license using the public key of your key pair. This public key can be safely
distributed with applications to license holders.
This package does not provide any other infrastructure than this simple classes. Licenses in general look like 8-character blocks, separated by dash characters. The number of blocks is determined by the size of the license holder string. The general rule is that 5 character (to be precise: bytes!) form an 8-character block in the license. The first block is reserved for meta-data (product ID and validity date).
This package is experimental yet. Usage is described on Class Usage Page
Interface Summary Interface Description ILicenseThe interface a license has to fulfill. ILicenseContextA container holding properties for creation and verification of licenses. ILicenseCreatorInternal interface for implementations of license generators. ILicenseVerifierInternal interface for implementations of license generators. ILicensingSchemeDescribes a licensing scheme.
Class Summary Class Description AbstractLicenseAbstract implementation of a license. DefaultLicenseDefault implementation of a license. DefaultLicenseContextDefault implementation of an
KeyGenA RSA Key Generator. LicenseGeneratorThe generator for license. LicenseManagerThe Key Manager, responsible to verify licenses. LicGenA universal generator for creating RSA licenses. SimpleLicenseA limited, simple implementation of a license.
Enum Summary Enum Description LicensingSchemeDescribes the alternative ways to produce a license key.
Exception Summary Exception Description LicenseExceptionA License problem.