Interface Licence


  • public interface Licence
    • Method Detail

      • check

        LicenceValidator.ValidationResult check()
                                         throws java.security.InvalidKeyException,
                                                java.security.NoSuchAlgorithmException,
                                                java.security.SignatureException,
                                                java.text.ParseException
        Throws:
        java.security.InvalidKeyException
        java.security.NoSuchAlgorithmException
        java.security.SignatureException
        java.text.ParseException
      • getBytes

        byte[] getBytes()
      • getLicenceDigest

        java.lang.String getLicenceDigest()
      • getPropertyAsBoolean

        java.lang.Boolean getPropertyAsBoolean​(java.lang.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

        java.util.Calendar getPropertyAsCalendar​(java.lang.String key)
                                          throws java.text.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:
        java.text.ParseException - if the specified properties cannot be parsed.
      • getPropertyAsDate

        java.util.Date getPropertyAsDate​(java.lang.String key)
                                  throws java.text.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:
        java.text.ParseException - if the specified properties cannot be parsed.
      • getPropertyAsDouble

        java.lang.Double getPropertyAsDouble​(java.lang.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

        java.lang.Integer getPropertyAsInteger​(java.lang.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

        java.lang.String getPropertyAsString​(java.lang.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.