com.vs.ezlicrun
Interface EzLicCustomLicenseInterface

All Known Implementing Classes:
EzLicCustomKeyHandler

public interface EzLicCustomLicenseInterface

An ISV that is interested in adding custom license management to the framework can implement this interface and provide its implementation for the method checkCustomKeyCode(). The method is automatically invoked by the implementation of the license checker class below, if a custom key is found to be specified in the key and an instance of the implementation of this interface is passed into the API. The method automatically throws an EzLicExceptionInvalidCustomKey exception by default if the check fails.


Method Summary
 int checkCustomKeyCode(java.lang.String customKey, java.lang.Object customCtx)
          Check specified custom key code using the specified run time context, returning a bitmap of warning codes defined in com.vs.ezlicenser.EzLicExceptionBase and / or appropriately extended by custom handler.
 

Method Detail

checkCustomKeyCode

int checkCustomKeyCode(java.lang.String customKey,
                       java.lang.Object customCtx)
                       throws EzLicExceptionBase
Check specified custom key code using the specified run time context, returning a bitmap of warning codes defined in com.vs.ezlicenser.EzLicExceptionBase and / or appropriately extended by custom handler. Warnings are benign alert conditions signifying impending events such as "license will expire soon".

Parameters:
customKey - custom key value that was embedded in a license key
customCtx - optional run time context
Returns:
bitmap of warning codes.
Throws:
EzLicExceptionBase - if the check fails
See Also:
EzLicExceptionBase