public interface Licence
| Modifier and Type | Field and Description |
|---|---|
static String |
SIGNATURE_ALGO |
static String |
VALID_SINCE_KEY |
static String |
VALID_UNTIL_KEY |
| Modifier and Type | Method and Description |
|---|---|
LicenceValidator.ValidationResult |
check() |
byte[] |
getBytes() |
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 SIGNATURE_ALGO
static final String VALID_SINCE_KEY
static final String VALID_UNTIL_KEY
LicenceValidator.ValidationResult check() throws InvalidKeyException, NoSuchAlgorithmException, SignatureException, ParseException
byte[] getBytes()
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–2014 Tigase. All rights reserved.