License

Inheritance: java.lang.Object

public class License

Provides methods to license the component.

Constructors

ConstructorDescription
License()Initializes a new instance of this class.

Methods

MethodDescription

| setLicense(File licenseFile) | Licenses the component. | | setLicense(InputStream stream) | Licenses the component. | | setLicense(String licenseFilePath) | Licenses the component. | | isValid() | Check license. |

License()

public License()

Initializes a new instance of this class.

setLicense(File licenseFile)

public static void setLicense(File licenseFile)

Licenses the component.

Parameters:

ParameterTypeDescription
licenseFilejava.io.Filerepresentation of file pathname

setLicense(InputStream stream)

public static void setLicense(InputStream stream)

Licenses the component.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamA stream that contains the license.

setLicense(String licenseFilePath)

public static void setLicense(String licenseFilePath)

Licenses the component.

Parameters:

ParameterTypeDescription
licenseFilePathjava.lang.StringCan be a full or short file name Use an empty string to switch to evaluation mode.

isValid()

public static boolean isValid()

Check license.

Returns: boolean - Boolean value license is valid.