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

de.schlichtherle.license.LicenseCreator Maven / Gradle / Ivy

There is a newer version: 1.33
Show newest version
/*
 * Copyright (C) 2005-2015 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package de.schlichtherle.license;

import java.rmi.Remote;

/**
 * Provides remote license creation services.
 *
 * @author Christian Schlichtherle
 * @version $Id$
 */
public interface LicenseCreator extends Remote {

    /**
     * Initializes and validates the license content, creates a new signed
     * license certificate for it and compresses, encrypts and returns it
     * as a license key.
     * 

* As a side effect, the given license {@code content} may be initialized * with some reasonable defaults unless the respective properties have * already been set. * * @param content The license content * - may not be {@code null}. * * @return The license key * - {@code null} is never returned. * * @throws Exception An instance of a subclass of this class for various * reasons. * Note that you should always use * {@link Throwable#getLocalizedMessage()} to get a (possibly * localized) meaningful detail message. */ byte[] create(LicenseContent content) throws Exception; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy