TrueLicense Core 1.33

de.schlichtherle.license
Interface LicenseParam

All Known Subinterfaces:
LicenseParam
All Known Implementing Classes:
AbstractLicenseParam, DefaultLicenseParam

public interface LicenseParam

Configures basic parameters required by the LicenseManager.

Author:
Christian Schlichtherle

Method Summary
 CipherParam getCipherParam()
          Returns the cipher configuration parameters for the license manager - null is never returned.
 KeyStoreParam getKeyStoreParam()
          Returns the keystore configuration parameters for the license manager - null is never returned.
 Preferences getPreferences()
          Returns the preferences node where the encoded licence is stored or should get stored.
 String getSubject()
          Returns the license manager's subject as a descriptive string - null is never returned.
 

Method Detail

getCipherParam

CipherParam getCipherParam()
Returns the cipher configuration parameters for the license manager - null is never returned.


getKeyStoreParam

KeyStoreParam getKeyStoreParam()
Returns the keystore configuration parameters for the license manager - null is never returned.


getPreferences

Preferences getPreferences()
Returns the preferences node where the encoded licence is stored or should get stored. This method may return null if the license manager is neither used to LicenseManager.install(java.io.File) a license nor to LicenseManager.verify() an installed license.

Note that the preferences node should be globally unique; otherwise, another application could overwrite your license key! Thus, it is recommended to follow Sun's guideline of creating globally unique package names by prefixing them with your globally unique Internet domain. You should then put the main class of your application in this package and return its user preferences node. This is because across platforms you will normally only have write access to the user preferences.

Returns:
The nullable preferences node for persisting the license key.

getSubject

String getSubject()
Returns the license manager's subject as a descriptive string - null is never returned.

Returns:
A string which must compare equal to the "subject" property of the LicenseContent JavaBean. Note that this is public information which may be displayed to the user in a wizard or some other form.

TrueLicense Core 1.33

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