christian-schlichtherle / truelicense

An open source engine for license management on the Java Virtual Machine.
https://truelicense.namespace.global
Apache License 2.0
319 stars 66 forks source link

storeInUserPreferences question? #9

Closed nikolakurtic closed 4 years ago

nikolakurtic commented 4 years ago

Is storeInUserPreferences mandatory? Is there a way to omit storing license? Thanks!

nikolakurtic commented 4 years ago

Ok, I just tested manager.uninstall() and it removes license from Preferences.

christian-schlichtherle commented 4 years ago

Is storeInUserPreferences mandatory? Is there a way to omit storing license? Thanks!

It's not mandatory. Your can...

I wonder what the use case is, however. Do you want to preview the license key? Then you should go with .storeIn(BIOS.memory()) as explained above. Otherwise, the call to manager.install(...) does exactly what it's name suggests: It installs the license key in the configured store.