Package tigase.licence
Interface Licence
public interface Licence
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheck()
byte[]
getBytes()
Searches for the property with the specified key in licence and try to convert property toBoolean
.Searches for the property with the specified key in licence and try to convert property toCalendar
.getPropertyAsDate
(String key) Searches for the property with the specified key in licence and try to convert property toInteger
.Searches for the property with the specified key in licence and try to convert property toDouble
.Searches for the property with the specified key in licence and try to convert property toInteger
.Searches for the property with the specified key in licence.
-
Field Details
-
APP_ID_KEY
- See Also:
-
BANNED_KEY
- See Also:
-
DISPLAY_LICENCE_NOTICE_KEY
- See Also:
-
SENDING_STATISTICS_KEY
- See Also:
-
MAX_ONLINE_USERS_KEY
- See Also:
-
MAX_CLUSTER_NODES_KEY
- See Also:
-
SIGNATURE_ALGO
- See Also:
-
VALID_SINCE_KEY
- See Also:
-
VALID_UNTIL_KEY
- See Also:
-
VHOST_NAME_KEY
- See Also:
-
VHOSTS_KEY
- See Also:
-
VHOSTS_DIFF_RATIO_KEY
- See Also:
-
-
Method Details
-
check
-
getBytes
byte[] getBytes() -
getLicenceDigest
String getLicenceDigest() -
getPropertyAsBoolean
Searches for the property with the specified key in licence and try to convert property toBoolean
. The method returnsnull
if the property is not found.- Parameters:
key
- the property key.- Returns:
- the value in this licence with the specified key value.
-
getPropertyAsCalendar
Searches for the property with the specified key in licence and try to convert property toCalendar
. The method returnsnull
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
Searches for the property with the specified key in licence and try to convert property toInteger
. The method returnsnull
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
Searches for the property with the specified key in licence and try to convert property toDouble
. The method returnsnull
if the property is not found.- Parameters:
key
- the property key.- Returns:
- the value in this licence with the specified key value.
-
getPropertyAsInteger
Searches for the property with the specified key in licence and try to convert property toInteger
. The method returnsnull
if the property is not found.- Parameters:
key
- the property key.- Returns:
- the value in this licence with the specified key value.
-
getPropertyAsString
Searches for the property with the specified key in licence. The method returnsnull
if the property is not found.- Parameters:
key
- the property key.- Returns:
- the value in this licence with the specified key value.
-