com.jp.protection.priv
Class ProductLicenseWriter

java.lang.Object
  extended by com.jp.protection.priv.LicenseWriter
      extended by com.jp.protection.priv.ProductLicenseWriter

public class ProductLicenseWriter
extends LicenseWriter

This class is intended to encode and to write licenses to the file or output stream. 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.priv.LicenseWriter
fEncryptKeyBytes, fSecurityProvider, fSkipEncryption, fVerbose
 
Constructor Summary
ProductLicenseWriter()
          Creates a new instance of the ProductLicenseWriter
ProductLicenseWriter(Product aProduct)
          Creates a new instance of the ProductLicenseWriter and initializes it with a product
 
Method Summary
static LicenseWriter createLicenseWriter()
          Creates a new instance of the ProductLicenseWriter
static LicenseWriter createLicenseWriter(Product aProduct)
          Creates a new instance of the ProductLicenseWriter and initializes it with a product
 Product getProduct()
          Returns the product for which licenses would be written
 void setProduct(Product aProduct)
          Specifies the product for which licenses would be written
 
Methods inherited from class com.jp.protection.priv.LicenseWriter
checkLicense, getEncryptKeyBytes, getPublicKeyBytes, isSkipEncryption, isVerbose, release, reset, setEncryptKeyBytes, setPublicKeyBytes, setSkipEncryption, setVerbose, writeLicense, writeLicense
 
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

ProductLicenseWriter

ProductLicenseWriter()
Creates a new instance of the ProductLicenseWriter


ProductLicenseWriter

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

Parameters:
aProduct - product to write the licenses for
Method Detail

createLicenseWriter

public static LicenseWriter createLicenseWriter()
Creates a new instance of the ProductLicenseWriter

Returns:
a new instance of the ProductLicenseWriter

createLicenseWriter

public static LicenseWriter createLicenseWriter(Product aProduct)
Creates a new instance of the ProductLicenseWriter and initializes it with a product

Parameters:
aProduct - product to write the licenses for
Returns:
a new instance of the ProductLicenseWriter

getProduct

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

Returns:
the product for which licenses would be written

setProduct

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

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