com.bbdsoft.LicenseEnforcer
Interface BBDLicenseHandler


public interface BBDLicenseHandler

Must be implemented by user application. UDPLicenseSentry obtains information about a license of a user application and calls lock() method to signal the user application if the license is not available.

BBDLicenseHandler should be registered with UDPLicenseSentry by calling BBDLicenseSentry.setLicenseHandler() method.

See Also:
BBDLicenseSentry, UDPLicenseSentry

Method Summary
 java.lang.String getLicenseHash()
          Returns a hash of a license.
 int getLicenseNumber()
          Returns a number of users that can work with the same license.
 void lock()
          Signals user program that there is no license available for it to run.
 

Method Detail

getLicenseHash

public java.lang.String getLicenseHash()
Returns a hash of a license. The hash must uniquely identify the license key of a user program. Only programs with the same license hash are considered to be concurrent instances.

See Also:
getLicenseNumber()

getLicenseNumber

public int getLicenseNumber()
Returns a number of users that can work with the same license. In a single license case it should return 1.

See Also:
getLicenseHash()

lock

public void lock()
Signals user program that there is no license available for it to run.

Is called by UDPLicenseSentry.

See Also:
UDPLicenseSentry