Interface LicenseInfoProvider

All Known Implementing Classes:
RailflowLicenseInfoProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LicenseInfoProvider
Provider for LicenseInfo objects.
Author:
Sergey Oplavin
  • Method Details

    • getLicenseInfo

      Optional<LicenseInfo> getLicenseInfo(String licenseKeyOrContent, ProxyConfiguration proxy) throws Exception
      Provides license information.
      Parameters:
      licenseKeyOrContent - license key or offline license content.
      proxy - proxy settings which are needed to connect to remote license server in case if license key is provided. If no proxy settings are required, pass null.
      Returns:
      license info object or empty optional.
      Throws:
      Exception - if something went wrong.