com.componio.jlicensure.client
Interface LicenseSource

All Superinterfaces:
PropertiesSettable

public interface LicenseSource
extends PropertiesSettable

A license source provides a method to receive a license for a given LicenseRequest object.


Method Summary
 License getLicense(LicenseRequest request)
          Get the license for the given LicenseRequest.
 License getLicense(LicenseRequest request, boolean authoritative)
          Get the license for the given LicenseRequest.
 
Methods inherited from interface com.componio.jlicensure.shared.PropertiesSettable
setProperties
 

Method Detail

getLicense

License getLicense(LicenseRequest request)
                   throws java.io.IOException
Get the license for the given LicenseRequest.

Parameters:
request - license request object
Returns:
a license or null if no license available
Throws:
java.io.IOException

getLicense

License getLicense(LicenseRequest request,
                   boolean authoritative)
                   throws java.io.IOException
Get the license for the given LicenseRequest.

Parameters:
request - license request object
authoritative - indicates whether the result must be authoritative
Returns:
a license or null if no license available
Throws:
java.io.IOException