TrueLicense Core 1.33

de.schlichtherle.license.ftp
Class AbstractLicenseParam

java.lang.Object
  extended by de.schlichtherle.license.DefaultLicenseParam
      extended by de.schlichtherle.license.ftp.AbstractLicenseParam
All Implemented Interfaces:
LicenseParam

public abstract class AbstractLicenseParam
extends DefaultLicenseParam
implements LicenseParam

This is a convenience class implementing some methods of the LicenseParam interface.

Author:
Christian Schlichtherle

Field Summary
private  int ftpDays
           
private  KeyStoreParam ftpKeyStoreParam
           
private static String LICENSE_CONTENT_INFO
           
 
Constructor Summary
protected AbstractLicenseParam(String subject, Preferences preferences, KeyStoreParam keyStoreParam, KeyStoreParam ftpKeyStoreParam, int ftpDays, CipherParam cipherParam)
          Creates a new instance of AbstractLicenseParam.
 
Method Summary
 LicenseContent createFTPLicenseContent()
          Returns a newly created and initialized license content suitable for a free trial period license - null is never returned.
 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.
 
Methods inherited from class de.schlichtherle.license.DefaultLicenseParam
getCipherParam, getKeyStoreParam, getPreferences, getSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.schlichtherle.license.ftp.LicenseParam
ftpGranted, isFTPEligible, removeFTPEligibility
 
Methods inherited from interface de.schlichtherle.license.LicenseParam
getCipherParam, getKeyStoreParam, getPreferences, getSubject
 

Field Detail

ftpDays

private final int ftpDays

ftpKeyStoreParam

private final KeyStoreParam ftpKeyStoreParam

LICENSE_CONTENT_INFO

private static final String LICENSE_CONTENT_INFO
Constructor Detail

AbstractLicenseParam

protected AbstractLicenseParam(String subject,
                               Preferences preferences,
                               KeyStoreParam keyStoreParam,
                               KeyStoreParam ftpKeyStoreParam,
                               int ftpDays,
                               CipherParam cipherParam)
Creates a new instance of AbstractLicenseParam.

Parameters:
subject - The licensing subject to be returned by DefaultLicenseParam.getSubject().
preferences - The preferences node used to store the license key to be returned by DefaultLicenseParam.getPreferences().
keyStoreParam - The key store parameters to be returned by DefaultLicenseParam.getKeyStoreParam().
cipherParam - The cipher parameters to be returned by DefaultLicenseParam.getCipherParam().
Method Detail

createFTPLicenseContent

public LicenseContent createFTPLicenseContent()
Description copied from interface: LicenseParam
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.


getFTPDays

public int getFTPDays()
Description copied from interface: LicenseParam
Returns the duration of the free trial period in days. Must be greater than 0 and less than a year.


getFTPKeyStoreParam

public KeyStoreParam getFTPKeyStoreParam()
Description copied from interface: LicenseParam
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().


TrueLicense Core 1.33

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