Package com.macrofocus.license
Class SimpleLicenseModel
- java.lang.Object
-
- com.macrofocus.license.SimpleLicenseModel
-
- All Implemented Interfaces:
LicenseModel
public class SimpleLicenseModel extends java.lang.Object implements LicenseModel
User: gluc Date: Oct 28, 2005 Time: 2:38:46 AM
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.macrofocus.license.LicenseModel
LicenseModel.Expiration, LicenseModel.State, LicenseModel.Validity
-
-
Constructor Summary
Constructors Constructor Description SimpleLicenseModel(ApplicationModel application, java.lang.String username, java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseModel.ExpirationgetExpiration()java.util.DategetExpirationDate()java.lang.StringgetUsername()LicenseModel.ValiditygetValidity()java.lang.StringtoString()LicenseModel.Stateverify()
-
-
-
Constructor Detail
-
SimpleLicenseModel
public SimpleLicenseModel(ApplicationModel application, java.lang.String username, java.lang.String key)
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsernamein interfaceLicenseModel
-
getExpirationDate
public java.util.Date getExpirationDate()
- Specified by:
getExpirationDatein interfaceLicenseModel
-
getExpiration
public LicenseModel.Expiration getExpiration()
- Specified by:
getExpirationin interfaceLicenseModel
-
getValidity
public LicenseModel.Validity getValidity()
- Specified by:
getValidityin interfaceLicenseModel
-
verify
public LicenseModel.State verify()
- Specified by:
verifyin interfaceLicenseModel
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-