Interface License


public interface License
Represents a license for the GG product.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.typesafe.config.Config
    Returns the license configuration in typesafe.Config format.
    <T> T
    field(LicenseField<T> field)
    Reads the given license field.
    boolean
    verifySignature(byte[] expectedSignature)
    Verifies the digital signature of this license against the given one.
  • Method Details

    • field

      @Nullable <T> T field(LicenseField<T> field)
      Reads the given license field.
      Returns:
      Field value or null if the field does not exist.
    • verifySignature

      boolean verifySignature(byte[] expectedSignature) throws InvalidSignatureException
      Verifies the digital signature of this license against the given one.
      Parameters:
      expectedSignature - Signature to validate this license against.
      Returns:
      true if this license matches the given signature, false otherwise.
      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.