Package com.bayesserver
Class License
- java.lang.Object
-
- com.bayesserver.License
-
public final class License extends Object
Provides license validation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
getIsValid()
Gets a value indicating whether a license has been successfully validated or not.static void
invalidate()
Resets any previous validation.static void
validate(String key)
Validates the library.
-
-
-
Method Detail
-
getIsValid
public static boolean getIsValid()
Gets a value indicating whether a license has been successfully validated or not.
-
invalidate
public static void invalidate()
Resets any previous validation. This is typically only used for testing.
-
validate
public static void validate(String key)
Validates the library. This should be called before using the library.- Parameters:
key
- The license key received when purchasing the product.
-
-