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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jp.protection.pub.LicenseReader
LicenseReader.FileStorage, LicenseReader.InMemoryStorage, LicenseReader.Storage
 
Field Summary
protected  Product fProduct
           
static java.lang.String SYS_PROP_VERBOSE
           
 
Fields inherited from class com.jp.protection.pub.LicenseReader
fClassForLoadLicenseResource, fDecryptKeyBytes, fLicense, fLicenseFileName, fLicenseFolder, fLicenseRead, fLicenseReaderIssueResolver, fLicenseResourceFolder, fPerformLicenseBackups, fSearchLicenseInFile, fSecurityAlgorithm, fSecurityProvider, fSkipEncryption, fStorage, 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
 boolean isVerbose()
          Checks whether reader runs in verbose mode.
 void setProduct(Product aProduct)
          Specifies the product for which licenses would be read
 
Methods inherited from class com.jp.protection.pub.LicenseReader
addLicenseReaderListener, backupLicense, canRestoreLicenseFromBackup, checkLicenseFile, decodeLicense, error, error, fireLicenseAboutToRead, fireLicenseAvailable, fireLicenseCorrupted, fireLicenseMissing, fireLicenseRemoved, fireLicenseUpdated, getBackupLicenseInputStream, getClassForLoadLicenseResource, getDecryptKeyBytes, getIssueResolver, getLicense, getLicense, getLicenseBytes, getLicenseBytes, getLicenseFile, getLicenseFileInputStream, getLicenseFileLocation, getLicenseFileName, getLicenseFolder, getLicenseInputStream, getLicenseOutputStream, getLicenseProduct, getLicenseResourceFolder, getLicenseResourceInputStream, getLicenseResourceLocation, getPrivateKeyBytes, getSecurityAlgorithm, getSecurityProvider, getStorage, getUserHome, isLicenseRead, isPerformLicenseBackups, isSearchLicenseInFile, isSkipEncryption, isUserHomeRelative, readLicense, readLicense, readLicense, removeLicense, removeLicenseReaderListener, restoreLicenseFromBackup, setClassForLoadLicenseResource, setDecryptKeyBytes, setDecryptKeyBytes, setIssueResolver, setLicenseFileName, setLicenseFolder, setLicenseResourceFolder, setPerformLicenseBackups, setPrivateKeyBytes, setPrivateKeyBytes, setSearchLicenseInFile, setSecurityAlgorithm, setSkipEncryption, setStorage, setUserHomeRelative, setVerbose, smartDecodeLicense, smartGetLicenseBytes, smartReadLicense, updateLicense, updateLicense, updateLicense
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYS_PROP_VERBOSE

public static final java.lang.String SYS_PROP_VERBOSE
See Also:
Constant Field Values

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

isVerbose

public boolean isVerbose()
Checks whether reader runs in verbose mode.

Overrides:
isVerbose in class LicenseReader
Returns:
true if reader runs in verbose mode, false otherwise.

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