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.
Provider for
LicenseInfo objects.- Author:
- Sergey Oplavin
-
Method Summary
Modifier and TypeMethodDescriptiongetLicenseInfo(String licenseKeyOrContent, ProxyConfiguration proxy) Provides license information.
-
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, passnull.- Returns:
- license info object or empty optional.
- Throws:
Exception- if something went wrong.
-