com.jp.protection.pub
Interface LicenseReaderListener

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
LicenseListener, LicenseReaderListenerExt
All Known Implementing Classes:
DefaultLicenseAdapter, LicenseAdapter, LicenseReaderFacade, LicensingServiceSupport

public interface LicenseReaderListener
extends java.util.EventListener

This interface represents listener that allows obtaining various information about the license reading process and its result.

See Also:
LicenseReader

Method Summary
 void licenseAboutToRead(LicenseReader aSource, java.lang.String aProductID)
          License reader calls this method to notify listener that the license is about to be read and specifies a known ID of the product this license is issued for.
 void licenseAvailable(LicenseReader aSource, java.lang.String aLicenseLocation)
          License reader calls this method to notify listener that the license is successfully read and available for use.
 void licenseCorrupted(LicenseReader aSource, java.lang.String aLicenseLocation)
          License reader calls this method to notify listener that the license is corrupted and therefore can not be read.
 void licenseMissing(LicenseReader aSource, java.lang.String aLicenseLocation)
          License reader calls this method to notify listener when the license is not found neither in the resource folder nor in the file system.
 

Method Detail

licenseAboutToRead

void licenseAboutToRead(LicenseReader aSource,
                        java.lang.String aProductID)
License reader calls this method to notify listener that the license is about to be read and specifies a known ID of the product this license is issued for. Listener's implementation can employ this method to locate a particular product and assign valid private key bytes to the reader.

Parameters:
aSource - the license reader.
aProductID - ID of the product this license is issued for.

licenseMissing

void licenseMissing(LicenseReader aSource,
                    java.lang.String aLicenseLocation)
License reader calls this method to notify listener when the license is not found neither in the resource folder nor in the file system.

Parameters:
aSource - the license reader.
aLicenseLocation - full path to the license file.

licenseCorrupted

void licenseCorrupted(LicenseReader aSource,
                      java.lang.String aLicenseLocation)
License reader calls this method to notify listener that the license is corrupted and therefore can not be read.

Parameters:
aSource - the license reader.
aLicenseLocation - full path to the license file.

licenseAvailable

void licenseAvailable(LicenseReader aSource,
                      java.lang.String aLicenseLocation)
License reader calls this method to notify listener that the license is successfully read and available for use.

Parameters:
aSource - the license reader.
aLicenseLocation - full path to the license file.