Interface Licence


public interface Licence
  • Field Details

  • Method Details

    • check

      Throws:
      InvalidKeyException
      NoSuchAlgorithmException
      SignatureException
      ParseException
    • getBytes

      byte[] getBytes()
    • getLicenceDigest

      String getLicenceDigest()
    • getPropertyAsBoolean

      Boolean getPropertyAsBoolean(String key)
      Searches for the property with the specified key in licence and try to convert property to Boolean. The method returns null if the property is not found.
      Parameters:
      key - the property key.
      Returns:
      the value in this licence with the specified key value.
    • getPropertyAsCalendar

      Calendar getPropertyAsCalendar(String key) throws ParseException
      Searches for the property with the specified key in licence and try to convert property to Calendar. The method returns null if the property is not found.
      Parameters:
      key - the property key.
      Returns:
      the value in this licence with the specified key value.
      Throws:
      ParseException - if the specified properties cannot be parsed.
    • getPropertyAsDate

      Date getPropertyAsDate(String key) throws ParseException
      Searches for the property with the specified key in licence and try to convert property to Integer. The method returns null if the property is not found.
      Parameters:
      key - the property key.
      Returns:
      the value in this licence with the specified key value.
      Throws:
      ParseException - if the specified properties cannot be parsed.
    • getPropertyAsDouble

      Double getPropertyAsDouble(String key)
      Searches for the property with the specified key in licence and try to convert property to Double. The method returns null if the property is not found.
      Parameters:
      key - the property key.
      Returns:
      the value in this licence with the specified key value.
    • getPropertyAsInteger

      Integer getPropertyAsInteger(String key)
      Searches for the property with the specified key in licence and try to convert property to Integer. The method returns null if the property is not found.
      Parameters:
      key - the property key.
      Returns:
      the value in this licence with the specified key value.
    • getPropertyAsString

      String getPropertyAsString(String key)
      Searches for the property with the specified key in licence. The method returns null if the property is not found.
      Parameters:
      key - the property key.
      Returns:
      the value in this licence with the specified key value.