Interface LicenseCreator

  • All Superinterfaces:
    java.rmi.Remote
    All Known Implementing Classes:
    LicenseManager

    public interface LicenseCreator
    extends java.rmi.Remote
    Provides remote license creation services.
    Version:
    $Id$
    Author:
    Christian Schlichtherle
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] create​(LicenseContent content)
      Initializes and validates the license content, creates a new signed license certificate for it and compresses, encrypts and returns it as a license key.
    • Method Detail

      • create

        byte[] create​(LicenseContent content)
               throws java.lang.Exception
        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 content may be initialized with some reasonable defaults unless the respective properties have already been set.

        Parameters:
        content - The license content - may not be null.
        Returns:
        The license key - null is never returned.
        Throws:
        java.lang.Exception - An instance of a subclass of this class for various reasons. Note that you should always use Throwable.getLocalizedMessage() to get a (possibly localized) meaningful detail message.