com.swak.license.api.LicenseManagementContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swak-license-core Show documentation
Show all versions of swak-license-core Show documentation
swak component of trueLicense core
The newest version!
/*
* Copyright (C) 2005 - 2019 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package com.swak.license.api;
import com.swak.license.api.auth.RepositoryFactory;
/**
* A context for license management.
*/
public interface LicenseManagementContext {
/**
* Returns the codec.
*/
Codec codec();
/**
* Returns a builder for a {@linkplain ConsumerLicenseManager consumer license manager}.
* Call its {@link ConsumerLicenseManagerBuilder#build} method to build the configured consumer license manager.
*/
ConsumerLicenseManagerBuilder consumer();
/**
* Returns the license factory.
*/
LicenseFactory licenseFactory();
/**
* Return the repository factory.
*/
RepositoryFactory> repositoryFactory();
/**
* Returns the license management subject.
*/
String subject();
/**
* Returns a builder for a {@linkplain VendorLicenseManager vendor license manager}.
*/
VendorLicenseManagerBuilder vendor();
}