Package org.gridgain.internal.license
Interface License
public interface License
Represents a license for the GG product.
-
Method Summary
Modifier and TypeMethodDescriptioncom.typesafe.config.Configconfig()Returns the license configuration in typesafe.Config format.<T> Tfield(LicenseField<T> field) Reads the given license field.booleanverifySignature(byte[] expectedSignature) Verifies the digital signature of this license against the given one.
-
Method Details
-
field
Reads the given license field.- Returns:
- Field value or
nullif the field does not exist.
-
verifySignature
Verifies the digital signature of this license against the given one.- Parameters:
expectedSignature- Signature to validate this license against.- Returns:
trueif this license matches the given signature,falseotherwise.- Throws:
InvalidSignatureException- If some internal errors happen related to parsing the signatures.
-
config
com.typesafe.config.Config config()Returns the license configuration in typesafe.Config format.
-