TrueLicense Core 1.33

de.schlichtherle.license.ftp
Interface LicenseParam

All Superinterfaces:
LicenseParam

public interface LicenseParam
extends LicenseParam

Extends LicenseParam in order to provide additional parameters required to manage a free trial period (FTP).

Author:
Christian Schlichtherle

Method Summary
 LicenseContent createFTPLicenseContent()
          Returns a newly created and initialized license content suitable for a free trial period license - null is never returned.
 void ftpGranted(LicenseContent content)
          This method is called whenever a free trial period license has been granted.
 int getFTPDays()
          Returns the duration of the free trial period in days.
 KeyStoreParam getFTPKeyStoreParam()
          Returns the keystore configuration parameters for the free trial period license.
 boolean isFTPEligible()
          Returns whether or not the license consumer is eligible for a free trial period.
 void removeFTPEligibility()
          Removes the license consumer's eligibility for another free trial period.
 
Methods inherited from interface de.schlichtherle.license.LicenseParam
getCipherParam, getKeyStoreParam, getPreferences, getSubject
 

Method Detail

createFTPLicenseContent

LicenseContent createFTPLicenseContent()
Returns a newly created and initialized license content suitable for a free trial period license - null is never returned. The subject and the expire date do not need to be initialized. This will happen outside of this method.


ftpGranted

void ftpGranted(LicenseContent content)
This method is called whenever a free trial period license has been granted. Note that you should not modify the given license content - it may adversely affect functionality provided in future.

Parameters:
content - A clone of the license content that has been automatically created - may not be null.

getFTPDays

int getFTPDays()
Returns the duration of the free trial period in days. Must be greater than 0 and less than a year.


getFTPKeyStoreParam

KeyStoreParam getFTPKeyStoreParam()
Returns the keystore configuration parameters for the free trial period license. The KeyStoreParam instance returned by this call must not equal() the one returned by LicenseParam.getKeyStoreParam().


isFTPEligible

boolean isFTPEligible()
Returns whether or not the license consumer is eligible for a free trial period.


removeFTPEligibility

void removeFTPEligibility()
Removes the license consumer's eligibility for another free trial period. This method is called if and only if a free trial period license has just been created.


TrueLicense Core 1.33

Copyright © 2005-2015 Schlichtherle IT Services. All Rights Reserved.