|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfiftyone.mobile.detection.LicenceKey
public class LicenceKey
Class to hold and validate a 51Degrees.mobi Licence key.
| Field Summary | |
|---|---|
private static String |
key
String to hold the licence key. |
| Constructor Summary | |
|---|---|
LicenceKey()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static String key
| Constructor Detail |
|---|
public LicenceKey()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||