public class LicenceKey extends Object
| Modifier and Type | Field and Description |
|---|---|
private static String |
key
String to hold the licence key.
|
| Constructor and Description |
|---|
LicenceKey() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getKey()
Returns the license key held by this object, or null if no valid key has
been set.
|
static void |
setKey(String licenceKey)
Assigns the given license key to the License key object if it is a valid
key.
|
private static boolean |
validate(String licenceKey)
Method to validate a license key before it is added to the Object.
|
private static String key
public static void setKey(String licenceKey)
licenceKey - The license key to add to the collection.public static String getKey()
private static boolean validate(String licenceKey)
licenceKey - the License key to validate.