com.jp.protection.priv
Class ProductLicenseReader

java.lang.Object
  extended by com.jp.protection.pub.LicenseReader
      extended by com.jp.protection.priv.ProductLicenseReader

public class ProductLicenseReader
extends LicenseReader

This class is intended to read a license, decode it, hold the already read license and notify interested listeners about reading process and its results. In addition to the core functionality this class provides initialization of the security key bytes and algorithm according to the values of the supplied product


Field Summary
protected  Product fProduct
           
 
Fields inherited from class com.jp.protection.pub.LicenseReader
fClassForLoadLicenseResource, fDecryptKeyBytes, fLicense, fLicenseFileName, fLicenseFolder, fLicenseRead, fLicenseReaderIssueResolver, fLicenseResourceFolder, fSearchLicenseInFile, fSecurityAlgorithm, fSecurityProvider, fSkipEncryption, fUserHomeRelative, fVerbose
 
Constructor Summary
ProductLicenseReader()
          Creates a new instance of the ProductLicenseReader
ProductLicenseReader(Product aProduct)
          Creates a new instance of the ProductLicenseReader and initializes it with a product
 
Method Summary
 Product getProduct()
          Returns the product for which licenses would be read
 void setProduct(Product aProduct)
          Specifies the product for which licenses would be read
 
Methods inherited from class com.jp.protection.pub.LicenseReader
addLicenseReaderListener, decodeLicense, error, error, fireLicenseAboutToRead, fireLicenseAvailable, fireLicenseCorrupted, fireLicenseMissing, getClassForLoadLicenseResource, getDecryptKeyBytes, getIssueResolver, getLicense, getLicense, getLicenseBytes, getLicenseBytes, getLicenseFile, getLicenseFileInputStream, getLicenseFileLocation, getLicenseFileName, getLicenseFolder, getLicenseInputStream, getLicenseOutputStream, getLicenseProduct, getLicenseResourceFolder, getLicenseResourceInputStream, getLicenseResourceLocation, getPrivateKeyBytes, getSecurityAlgorithm, getSecurityProvider, isLicenseRead, isSearchLicenseInFile, isSkipEncryption, isUserHomeRelative, isVerbose, readLicense, readLicense, readLicense, removeLicenseReaderListener, setClassForLoadLicenseResource, setDecryptKeyBytes, setDecryptKeyBytes, setIssueResolver, setLicenseFileName, setLicenseFolder, setLicenseResourceFolder, setPrivateKeyBytes, setPrivateKeyBytes, setSearchLicenseInFile, setSecurityAlgorithm, setSkipEncryption, setUserHomeRelative, setVerbose, smartDecodeLicense, smartGetLicenseBytes, smartReadLicense
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fProduct

protected Product fProduct
Constructor Detail

ProductLicenseReader

public ProductLicenseReader(Product aProduct)
Creates a new instance of the ProductLicenseReader and initializes it with a product

Parameters:
aProduct - product to read licenses for

ProductLicenseReader

public ProductLicenseReader()
Creates a new instance of the ProductLicenseReader

Method Detail

getProduct

public Product getProduct()
Returns the product for which licenses would be read

Returns:
the product for which licenses would be read

setProduct

public void setProduct(Product aProduct)
Specifies the product for which licenses would be read

Parameters:
aProduct - the product for which licenses would be read