Class PolymartLicenseEntry

java.lang.Object
me.hsgamer.hscore.license.polymart.PolymartLicenseEntry

public class PolymartLicenseEntry extends Object
The license entry for Polymart
  • Field Details

    • user

      public final String user
    • username

      public final String username
    • resource

      public final String resource
    • resourceVersion

      public final String resourceVersion
    • nonce

      public final String nonce
    • verifyToken

      public final String verifyToken
    • license

      public final String license
    • agent

      public final String agent
    • timestamp

      public final String timestamp
  • Constructor Details

  • Method Details

    • isValid

      public boolean isValid(boolean isPaid)
      Check if the entry is valid
      Parameters:
      isPaid - if the resource is paid
      Returns:
      true if it is
    • toProperties

      public LicenseProperties toProperties()
      Convert to properties
      Returns:
      the properties
    • toQueryMap

      public Map<String,String> toQueryMap()
      Convert to a query map
      Returns:
      the query map