Overview
The LicenseManager is the core module responsible for managing licenses, communicating with the LicenseSpring server, and handling authentication.
To create a new license manager, use:
For OAuth-based configurations, use:
The LicenseManager includes a LicenseClient, which contains all configuration for interacting with the server:
Storage is responsible for securely persisting license-related data such as license files, guard files, and encrypted custom data.
The LicenseHandler is the user-facing layer that wraps the LicenseManager and Storage. It acts as a coordinator:
- Calls the license manager to perform actions (e.g. activation)
- Persists the resulting data to storage (e.g. license file)
- Manages offline guard file storage
- Decouples core logic (license manager) from the storage mechanism
The LicenseManager is completely decoupled from the storage implementation. This allows the replacement of the storage layer without changing the license logic.
For example, when floating server support is added in the future:
- We can implement a new Storage logic
- Use the existing LicenseManager as-is
- Replace LicenseHandler with a FloatingServerHandler or similar
More details about license handler in next section.