All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.swak.license.api.VendorLicenseManager Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2005 - 2019 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package com.swak.license.api;

/**
 * Defines the life cycle management operations for license keys in vendor applications alias key generators.
 * 

* A (checked) vendor license manager generally throws a {@link LicenseManagementException} if an operation fails. * * @see UncheckedVendorLicenseManager#checked() */ public interface VendorLicenseManager extends LicenseManagerMixin { /** * Returns a license key generator for the given license bean. *

* Calling this operation performs an initial * {@linkplain LicenseManagementAuthorization#clearGenerate authorization check}. * * @param bean the license bean to process. * This bean is not modified by the returned license key generator. * @return A license key generator for the given license bean. */ LicenseKeyGenerator generateKeyFrom(License bean) throws LicenseManagementException; /** * Adapts this vendor license manager so that it generally throws an {@link UncheckedLicenseManagementException} * instead of a (checked) {@link LicenseManagementException} if an operation fails. * * @return the adapted unchecked vendor license manager. */ default UncheckedVendorLicenseManager unchecked() { return () -> this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy