Package com.iizix.license
Interface ICodeCommon
- All Known Subinterfaces:
- IActivationCode,- ILicenseCode
public interface ICodeCommon
The common code interface.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescription- getCode()Gets the code formatted as a string as digits grouped in 5 digits, separated by dashes ('-').- longGets the time of creation of the code.Gets the reason for the code revocation.- longGets the time for the code revocation.- longGets the time of the last update of the code.- booleanReturns if the code is revoked.
- Method Details- getCodeString getCode()Gets the code formatted as a string as digits grouped in 5 digits, separated by dashes ('-'). This is NOT the complete code but is used for e.g. activation purposes or when communicating with IIZI Support.- Returns:
- The string formatted as e.g. "12345-67890-12345-99887".
 
- getCreationTimelong getCreationTime()Gets the time of creation of the code.- Returns:
- Creation time in milliseconds since the epoch in GMT, or -1 if not created.
 
- getUpdateTimelong getUpdateTime()Gets the time of the last update of the code. The code is not set to updated when created, only when updated, e.g. using a new activation code.- Returns:
- Creation time in milliseconds since the epoch in GMT, or -1 if not updated.
 
- isRevokedboolean isRevoked()Returns if the code is revoked.- Returns:
- true if revoked.
 
- getRevocationReasonString getRevocationReason()Gets the reason for the code revocation.- Returns:
- The revocation string, or null if code is not revoked.
 
- getRevocationTimelong getRevocationTime()Gets the time for the code revocation.- Returns:
- The revocation time in milliseconds since the epoch in GMT, or -1 if not revoked.