public interface Licence
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_ID_KEY |
static String |
BANNED_KEY |
static String |
DISPLAY_LICENCE_NOTICE_KEY |
static String |
MAX_CLUSTER_NODES_KEY |
static String |
MAX_ONLINE_USERS_KEY |
static String |
SENDING_STATISTICS_KEY |
static String |
SIGNATURE_ALGO |
static String |
VALID_SINCE_KEY |
static String |
VALID_UNTIL_KEY |
static String |
VHOST_NAME_KEY |
static String |
VHOSTS_DIFF_RATIO_KEY |
static String |
VHOSTS_KEY |
| Modifier and Type | Method and Description |
|---|---|
LicenceValidator.ValidationResult |
check() |
byte[] |
getBytes() |
String |
getLicenceDigest() |
Boolean |
getPropertyAsBoolean(String key)
Searches for the property with the specified key in licence and try to
convert property to
Boolean. |
Calendar |
getPropertyAsCalendar(String key)
Searches for the property with the specified key in licence and try to
convert property to
Calendar. |
Date |
getPropertyAsDate(String key)
Searches for the property with the specified key in licence and try to
convert property to
Integer. |
Double |
getPropertyAsDouble(String key)
Searches for the property with the specified key in licence and try to
convert property to
Double. |
Integer |
getPropertyAsInteger(String key)
Searches for the property with the specified key in licence and try to
convert property to
Integer. |
String |
getPropertyAsString(String key)
Searches for the property with the specified key in licence.
|
static final String APP_ID_KEY
static final String BANNED_KEY
static final String DISPLAY_LICENCE_NOTICE_KEY
static final String SENDING_STATISTICS_KEY
static final String MAX_ONLINE_USERS_KEY
static final String MAX_CLUSTER_NODES_KEY
static final String SIGNATURE_ALGO
static final String VALID_SINCE_KEY
static final String VALID_UNTIL_KEY
static final String VHOST_NAME_KEY
static final String VHOSTS_KEY
static final String VHOSTS_DIFF_RATIO_KEY
LicenceValidator.ValidationResult check() throws InvalidKeyException, NoSuchAlgorithmException, SignatureException, ParseException
byte[] getBytes()
String getLicenceDigest()
Boolean getPropertyAsBoolean(String key)
Boolean. The method returns
null if the property is not found.key - the property key.Calendar getPropertyAsCalendar(String key) throws ParseException
Calendar. The method returns
null if the property is not found.key - the property key.ParseException - if the specified properties cannot be parsed.Date getPropertyAsDate(String key) throws ParseException
Integer. The method returns
null if the property is not found.key - the property key.ParseException - if the specified properties cannot be parsed.Double getPropertyAsDouble(String key)
Double. The method returns
null if the property is not found.key - the property key.Integer getPropertyAsInteger(String key)
Integer. The method returns
null if the property is not found.key - the property key.Copyright © 2011–2020 Tigase. All rights reserved.