|
TrueLicense Core 1.33 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.license.DefaultLicenseParam
public class DefaultLicenseParam
This is a convenience class implementing the LicenseParam interface.
| Field Summary | |
|---|---|
private CipherParam |
cipherParam
|
private KeyStoreParam |
keyStoreParam
|
private Preferences |
preferences
|
private String |
subject
|
| Constructor Summary | |
|---|---|
DefaultLicenseParam(String subject,
Preferences preferences,
KeyStoreParam keyStoreParam,
CipherParam cipherParam)
Creates a new instance of DefaultLicenseParam. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final CipherParam cipherParam
private final KeyStoreParam keyStoreParam
private final Preferences preferences
private final String subject
| Constructor Detail |
|---|
public DefaultLicenseParam(String subject,
Preferences preferences,
KeyStoreParam keyStoreParam,
CipherParam cipherParam)
subject - The licensing subject
to be returned by getSubject().preferences - The preferences node used to store the license key
to be returned by getPreferences().keyStoreParam - The key store parameters
to be returned by getKeyStoreParam().cipherParam - The cipher parameters
to be returned by getCipherParam().| Method Detail |
|---|
public CipherParam getCipherParam()
LicenseParamnull is never returned.
getCipherParam in interface LicenseParampublic KeyStoreParam getKeyStoreParam()
LicenseParamnull is never returned.
getKeyStoreParam in interface LicenseParampublic Preferences getPreferences()
LicenseParamnull 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.
getPreferences in interface LicenseParampublic String getSubject()
LicenseParamnull is never returned.
getSubject in interface LicenseParamLicenseContent 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 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||