Package com.vaadin.pro.licensechecker
Class LocalOfflineKey
java.lang.Object
com.vaadin.pro.licensechecker.LocalOfflineKey
Fetches an offline key from either the home directory (~/.vaadin/offlineKey)
or from a system property (
vaadin.offlineKey) if available. Also
capable of writing an offline key but this should not be used except for
testing. Offline keys are always downloaded and stored manually.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<OfflineKey>fromString(String key) Creates a newOfflineKeybased on the given string representation.static OfflineKeyget()Finds an offline key, either from a system property or from the home directory.static File[]
-
Constructor Details
-
LocalOfflineKey
public LocalOfflineKey()
-
-
Method Details
-
getLocations
-
get
Finds an offline key, either from a system property or from the home directory.- Returns:
- an offline key or
nullif no key was found
-
fromString
Creates a newOfflineKeybased on the given string representation.- Parameters:
key- The string representation of the offline key.- Returns:
- an
OfflineKey, or an emptyOptionalif the given string does not represent a valid offline key.
-