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

com.swak.license.api.LicenseManagementContext 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;


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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy