com.jp.protection.priv.products
Class Product

java.lang.Object
  extended by com.jp.protection.priv.products.Product
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class Product
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

This class describes a product for which licenses can be generated

See Also:
Serialized Form

Nested Class Summary
static class Product.DigestBuildConfigHashedListStrategy
           
(package private) static class Product.ProductEditionIDHashedListStrategy
           
static class Product.ProductFeatureIDHashedListStrategy
           
static class Product.ProductLink
          This class defines properties of a product's link
(package private) static class Product.ProductLinkIDHashedListStrategy
           
static class Product.ProtectionLauncherBuildConfigHashedListStrategy
           
 
Field Summary
static java.lang.String DEFAULT_SECURITY_ALGORITHM
           
protected  java.util.Map fAuditRuleEnabledMap
           
protected  java.lang.String fCodeSnippetID
           
protected  java.lang.String fCompany
           
protected  dev.util.collections.ContainerListener fContainerListener
           
protected  java.lang.String fCopyright
           
protected  java.lang.String fCRCClassName
           
protected  java.lang.String fCRCCodeSnippet
           
protected  java.lang.String fCRCCodeSnippetFileName
           
protected  java.util.List fCRCEntries
           
protected  java.lang.String fCRCPackageName
           
protected  java.lang.String fDefaultAlias
           
protected  int fDefaultEvalPeriod
           
protected  int fDefaultGracePeriod
           
protected  int fDigestAlgorithm
           
protected  dev.util.collections.HashedBoundList fDigestBuildConfigs
           
protected  DigestRuntimeConfig fDigestRuntimeConfig
           
protected  boolean fDisabled
           
protected  java.lang.String fEmailSubject
           
protected  java.lang.String fEmailText
           
protected  java.lang.String fFeedbackText
           
protected  java.lang.String fFeedbackTooltip
           
protected  java.lang.String fFeedbackURL
           
protected  java.lang.String fID
           
protected  ProtectionLauncherConfigBase fLauncherConfig
           
protected  java.lang.String fLicenseClassName
           
protected  java.lang.String fLicenseCodeSnippet
           
protected  java.lang.String fLicenseCodeSnippetFileName
           
protected  java.lang.String fLicenseFileName
           
protected  java.lang.String fLicenseFolder
           
protected  java.lang.String fLicensePackageName
           
protected  java.lang.String fLicenseResourceFolder
           
protected  boolean fLicenseUserHomeRelative
           
protected  int fMajorVersion
           
protected  int fMinorVersion
           
protected  java.lang.String fName
           
protected  byte[] fPrivateKeyBytes
           
protected  dev.util.collections.HashedBoundList fProductEditions
           
protected  dev.util.collections.HashedBoundList fProductFeatures
           
protected  dev.util.collections.HashedBoundList fProductLinks
           
protected  dev.util.collections.ContainerListener fProductLinksListener
           
protected  java.util.List fPropertyInfos
           
protected  dev.util.collections.HashedBoundList fProtectionLauncherBuildConfigs
           
protected  byte[] fPublicKeyBytes
           
protected  java.lang.String fSecretStorageFileName
           
protected  java.lang.String fSecretStorageFolder
           
protected  boolean fSecretStorageUserHomeRelative
           
protected  java.lang.String fSecurityAlgorithm
           
protected  boolean fSecurityKeysConverted
           
protected  int fShortID
           
protected  java.util.HashMap fShortIDProductEditionMap
           
protected  java.lang.String fSiteText
           
protected  java.lang.String fSiteTooltip
           
protected  java.lang.String fSiteURL
           
protected  int fType
           
static int PRODUCT_LINK_INDEX_FEEDBACK
           
static int PRODUCT_LINK_INDEX_SITE
           
static long serialVersionUID
           
static int TYPE_CONSOLE_APPLICATION
           
static int TYPE_GUI_APPLICATION
           
static int TYPE_UNKNOWN
           
static int UNASSIGNED_SHORT_ID
           
 
Constructor Summary
Product()
          Creates a new instance of the Product
Product(java.lang.String aID)
          Creates a new instance of the Product
 
Method Summary
protected  void assignProductEditionShortIDs()
           
 Product cloneProduct()
          Creates a "deep" copy of this product
 int compareTo(java.lang.Object o)
           
 boolean convertSecurityKeys()
           
 ProductEdition createProductEdition()
          Creates a new product edition object
 boolean equals(java.lang.Object obj)
           
protected  int generateProductEditionShortID()
           
 java.util.Map getAuditRuleEnabledMap()
           
 java.lang.String getCodeSnippetID()
           
 java.lang.String getCompany()
          Deprecated. use getLauncherConfig().getCompany() instead
 java.lang.String getCopyright()
          Deprecated. use getLauncherConfig().getCopyright() instead
 byte[] getDecryptKeyBytes()
          Returns bytes array that specifies key used to decrypt the license.
 java.lang.String getDecryptKeyBytesStr()
          Returns textual representation of the decryption key bytes
 java.lang.String getDefaultAlias()
           
 int getDefaultEvalPeriod()
          Returns default evaluation period
 int getDefaultGracePeriod()
          Returns default grace period
 int getDigestAlgorithm()
           
 DigestBuildConfig getDigestBuildConfig(java.lang.String anID)
           
 java.util.List getDigestBuildConfigs()
           
 java.util.List getDigestEntries()
          Return the list of the DigestEntry objects
 DigestRuntimeConfig getDigestRuntimeConfig()
           
 java.lang.String getEmailSubject()
          Returns the e-mail message subject
 java.lang.String getEmailText()
          Returns the e-mail message text
 byte[] getEncryptKeyBytes()
          Returns bytes array that specifies key used to encrypt the license.
 java.lang.String getEncryptKeyBytesStr()
          Returns textual representation of the encryption key bytes
 java.lang.String getEnterpriseInstallFolder()
          Returns a folder where Protection! Enterprise is installed
 java.lang.String getFeedbackText()
           
 java.lang.String getFeedbackTooltip()
           
 java.lang.String getFeedbackURL()
           
 java.lang.String getID()
          Returns product's identifier
 java.lang.String getIntegrityClassName()
          Returns the name of the Integrity code snippet class
 java.lang.String getIntegrityCodeSnippet()
          Returns text of the Integrity code snippet associated with the product
 java.lang.String getIntegrityCodeSnippetFileName()
          Returns the name of the file to save the Integrity code snippet to
 java.lang.String getIntegrityPackageName()
          Returns the name of the package for the Integrity code snippet class
 ProtectionLauncherConfigBase getLauncherConfig()
           
 java.lang.String getLicenseClassName()
          Returns the name of the license code snippet class
 java.lang.String getLicenseCodeSnippet()
          Returns text of the license code snippet associated with the product
 java.lang.String getLicenseCodeSnippetFileName()
          Returns the name of the file to save the license code snippet to
 java.lang.String getLicenseFileName()
          Deprecated. use getLauncherConfig().getLicenseFileName() instead
 java.lang.String getLicenseFolder()
          Deprecated. use getLauncherConfig().getLicenseFolder() instead
 java.lang.String getLicensePackageName()
          Returns the name of the package for the license code snippet class
 java.lang.String getLicenseResourceFolder()
          Deprecated. use getLauncherConfig().getLicenseResourceFolder() instead
 int getMajorVersion()
          Returns major version of the product
 int getMinorVersion()
          Returns minor version of the product
 java.lang.String getName()
          Return product's name
 byte[] getPrivateKeyBytes()
          Deprecated. use getDecryptKeyBytes() instead
 java.lang.String getPrivateKeyBytesStr()
          Deprecated. use getDecryptKeyBytesStr() instead
 ProductEdition getProductEdition(int anIndex)
          Find product's edition by its index
 ProductEdition getProductEdition(java.lang.String anID)
          Finds product edition by its identifier
 ProductEdition getProductEditionByShortID(int aShortID)
          Returns product edition by its short identifier
 java.util.List getProductEditions()
          Return the list of product's editions
 int getProductEditionsSize()
          Returns count of product's editions
 ProductFeature getProductFeature(int anIndex)
          Find product's feature by its index
 ProductFeature getProductFeature(java.lang.String anID)
          Finds product feature by its identifier
 java.util.List getProductFeatures()
          Return the list of product's features
 int getProductFeaturesSize()
          Returns count of product's features
 Product.ProductLink getProductLink(int anIndex)
          Finds product's link by its index
 Product.ProductLink getProductLink(java.lang.String anID)
          Finds product's link by its identifier
 java.util.List getProductLinks()
          Returns the list of the ProductLink objects
 java.util.List getPropertyInfos()
           
 ProtectionLauncherBuildConfig getProtectionLauncherBuildConfig(java.lang.String anID)
           
 dev.util.collections.HashedBoundList getProtectionLauncherBuildConfigs()
           
 byte[] getPublicKeyBytes()
          Deprecated. use getEncryptKeyBytes() instead
 java.lang.String getSecretStorageFileName()
          Deprecated. use getLauncherConfig().getSecretStorageProviders() instead
 java.lang.String getSecretStorageFolder()
          Deprecated. use getLauncherConfig().getSecretStorageProviders() instead
 java.lang.String getSecurityAlgorithm()
          Returns security algorithm to be used to encode and decode licenses
 int getShortID()
          Returns product's short identifier
 java.util.HashMap getShortIDProductEditionMap()
          Returns product edition by short identifier map
 java.lang.String getSiteText()
           
 java.lang.String getSiteTooltip()
           
 java.lang.String getSiteURL()
           
 int getType()
           
static java.lang.String getTypeStr(int aType)
           
 java.lang.String getVersionStr()
          Compose product's version using major an minor version attributes
 boolean isAuditRuleEnabled(java.lang.String anID)
           
 boolean isEnabled()
           
 boolean isLicenseUserHomeRelative()
          Deprecated. use getLauncherConfig().isLicenseUserHomeRelative() instead
 boolean isSecretStorageUserHomeRelative()
          Deprecated. use getLauncherConfig().getSecretStorageProviders() instead
 boolean isSecurityKeysConverted()
           
 boolean isUseEnterpriseWSPlugin()
          Returns whether Protection! Enterprise plug-in is used
 void move(ProductFeature aProductFeature, int anInc)
          Moves product's feature up/down movement in the features list
 void setAuditRuleEnabled(java.lang.String anID, boolean isEnabled)
           
 void setCodeSnippetID(java.lang.String aCodeSnippetID)
           
 void setCompany(java.lang.String aCompany)
          Deprecated. use getLauncherConfig().setCompany() instead
 void setCopyright(java.lang.String aCopyright)
          Deprecated. use getLauncherConfig().setCopyright() instead
 void setDecryptKeyBytes(byte[] aDecryptKeyBytes)
          Specifies bytes array that represents key used to decrypt the license.
 void setDefaultAlias(java.lang.String aDefaultAlias)
           
 void setDefaultEvalPeriod(int aDefaultEvalPeriod)
          Specifies default evaluation period
 void setDefaultGracePeriod(int aDefaultGracePeriod)
          Specifies default grace period
 void setDigestAlgorithm(int aDigestAlgorithm)
           
protected  void setDigestRuntimeConfig(DigestRuntimeConfig aDigestRuntimeConfig)
           
 void setEmailSubject(java.lang.String aEmailSubject)
          Specifies the e-mail message subject
 void setEmailText(java.lang.String aEmailText)
          Specifies the e-mail message text
 void setEnabled(boolean anEnabled)
           
 void setEncryptKeyBytes(byte[] aEncryptKeyBytes)
          Specifies bytes array that represnts key used to encrypt the license.
 void setEnterpriseInstallFolder(java.lang.String enterpriseInstallFolder)
          Specifies a folder where Protection! Enterprise is installed
 void setFeedbackText(java.lang.String aFeedbackText)
           
 void setFeedbackTooltip(java.lang.String aFeedbackTooltip)
           
 void setFeedbackURL(java.lang.String aFeedbackURL)
           
 void setID(java.lang.String aID)
          Specifies product's identifier
 void setIntegrityClassName(java.lang.String anIntegrityClassName)
          Specifies the name of the Integrity code snippet class
 void setIntegrityCodeSnippet(java.lang.String anIntegrityCodeSnippet)
          Specifies text of the Integrity code snippet associated with the product
 void setIntegrityCodeSnippetFileName(java.lang.String anIntegrityCodeSnippetFileName)
          Specifies the name of the file to save the Integrity code snippet to
 void setIntegrityPackageName(java.lang.String anIntegrityPackageName)
          Specifies the name of the package for the Integrity code snippet class
 void setLicenseClassName(java.lang.String aLicenseClassName)
          Specifies the name of the license code snippet class
 void setLicenseCodeSnippet(java.lang.String aLicenseCodeSnippet)
          Specifies text of the license code snippet associated with the product
 void setLicenseCodeSnippetFileName(java.lang.String aCodeSnippetFileName)
          Specifies the name of the file to save the license code snippet to
 void setLicenseFileName(java.lang.String aLicenseFileName)
          Deprecated. use getLauncherConfig().setLicenseFileName() instead
 void setLicenseFolder(java.lang.String aLicenseFolder)
          Specifies the name of the folder to locate license in
 void setLicensePackageName(java.lang.String aPackageName)
          Specifies the name of the package for the license code snippet class
 void setLicenseResourceFolder(java.lang.String aLicenseResourceFolder)
          Deprecated. use getLauncherConfig().setLicenseResourceFolder() instead
 void setLicenseUserHomeRelative(boolean aLicenseUserHomeRelative)
          Deprecated. use getLauncherConfig().setLicenseUserHomeRelative() instead
 void setMajorVersion(int aMajorVersion)
          Specifies major version of the product
 void setMinorVersion(int aMinorVersion)
          Specifies minor version of the product
 void setName(java.lang.String aName)
          Specifies product's name
 void setPrivateKeyBytes(byte[] aPrivateKeyBytes)
          Deprecated. use setDecryptKeyBytes(...) instead
protected  void setProtectionLauncherConfig(ProtectionLauncherConfigBase aConfig)
           
 void setPublicKeyBytes(byte[] aPublicKeyBytes)
          Deprecated. use setEncryptKeyBytes(...) instead
 void setSecretStorageFileName(java.lang.String aSecretStorageFileName)
          Deprecated. use getLauncherConfig().getSecretStorageProviders() instead
 void setSecretStorageFolder(java.lang.String aSecretStorageFolder)
          Deprecated. use getLauncherConfig().getSecretStorageProviders() instead
 void setSecretStorageUserHomeRelative(boolean aSecretStorageUserHomeRelative)
          Deprecated. use getLauncherConfig().getSecretStorageProviders() instead
 void setSecurityAlgorithm(java.lang.String aSecurityAlgorithm)
          Specifies security algorithm to be used to encode and decode licenses
 void setSecurityKeysConverted(boolean aSecurityKeysConverted)
           
 void setShortID(int aShortID)
          Specifies product's short identifier
 void setSiteText(java.lang.String aSiteText)
           
 void setSiteTooltip(java.lang.String aSiteTooltip)
           
 void setSiteURL(java.lang.String aSiteURL)
           
 void setType(int aType)
           
 void setUseEnterpriseWSPlugin(boolean useEnterpriseWSPlugin)
          Specifies whether Protection! Enterprise plug-in should be used
 java.lang.String toString()
           
 Product update(Product aProduct)
          Updates specified product
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNASSIGNED_SHORT_ID

public static final int UNASSIGNED_SHORT_ID
See Also:
Constant Field Values

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

fName

protected java.lang.String fName

fID

protected java.lang.String fID

fShortID

protected int fShortID

fMajorVersion

protected int fMajorVersion

fMinorVersion

protected int fMinorVersion

fSiteText

protected java.lang.String fSiteText

fSiteURL

protected java.lang.String fSiteURL

fSiteTooltip

protected java.lang.String fSiteTooltip

fFeedbackText

protected java.lang.String fFeedbackText

fFeedbackURL

protected java.lang.String fFeedbackURL

fFeedbackTooltip

protected java.lang.String fFeedbackTooltip

fLicenseFileName

protected java.lang.String fLicenseFileName

fLicenseFolder

protected java.lang.String fLicenseFolder

fLicenseUserHomeRelative

protected boolean fLicenseUserHomeRelative

fLicenseResourceFolder

protected java.lang.String fLicenseResourceFolder

fSecretStorageFileName

protected java.lang.String fSecretStorageFileName

fSecretStorageFolder

protected java.lang.String fSecretStorageFolder

fSecretStorageUserHomeRelative

protected boolean fSecretStorageUserHomeRelative

fLicensePackageName

protected java.lang.String fLicensePackageName

fLicenseClassName

protected java.lang.String fLicenseClassName

fLicenseCodeSnippetFileName

protected java.lang.String fLicenseCodeSnippetFileName

fCRCPackageName

protected java.lang.String fCRCPackageName

fCRCClassName

protected java.lang.String fCRCClassName

fCRCCodeSnippetFileName

protected java.lang.String fCRCCodeSnippetFileName

fLicenseCodeSnippet

protected java.lang.String fLicenseCodeSnippet

fCRCCodeSnippet

protected java.lang.String fCRCCodeSnippet

fPublicKeyBytes

protected byte[] fPublicKeyBytes

fPrivateKeyBytes

protected byte[] fPrivateKeyBytes

fSecurityAlgorithm

protected java.lang.String fSecurityAlgorithm

fSecurityKeysConverted

protected boolean fSecurityKeysConverted

DEFAULT_SECURITY_ALGORITHM

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

fDefaultEvalPeriod

protected int fDefaultEvalPeriod

fDefaultGracePeriod

protected int fDefaultGracePeriod

fCopyright

protected java.lang.String fCopyright

fCompany

protected java.lang.String fCompany

fEmailSubject

protected java.lang.String fEmailSubject

fEmailText

protected java.lang.String fEmailText

fPropertyInfos

protected java.util.List fPropertyInfos

fDisabled

protected boolean fDisabled

fShortIDProductEditionMap

protected transient java.util.HashMap fShortIDProductEditionMap

fProductLinksListener

protected transient dev.util.collections.ContainerListener fProductLinksListener

fProductFeatures

protected dev.util.collections.HashedBoundList fProductFeatures

fProductEditions

protected dev.util.collections.HashedBoundList fProductEditions

fProductLinks

protected dev.util.collections.HashedBoundList fProductLinks

fContainerListener

protected transient dev.util.collections.ContainerListener fContainerListener

fCRCEntries

protected java.util.List fCRCEntries

fDigestAlgorithm

protected int fDigestAlgorithm

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
See Also:
Constant Field Values

TYPE_GUI_APPLICATION

public static final int TYPE_GUI_APPLICATION
See Also:
Constant Field Values

TYPE_CONSOLE_APPLICATION

public static final int TYPE_CONSOLE_APPLICATION
See Also:
Constant Field Values

fType

protected int fType

fCodeSnippetID

protected java.lang.String fCodeSnippetID

fDefaultAlias

protected java.lang.String fDefaultAlias

PRODUCT_LINK_INDEX_SITE

public static final int PRODUCT_LINK_INDEX_SITE
See Also:
Constant Field Values

PRODUCT_LINK_INDEX_FEEDBACK

public static final int PRODUCT_LINK_INDEX_FEEDBACK
See Also:
Constant Field Values

fDigestBuildConfigs

protected dev.util.collections.HashedBoundList fDigestBuildConfigs

fProtectionLauncherBuildConfigs

protected dev.util.collections.HashedBoundList fProtectionLauncherBuildConfigs

fAuditRuleEnabledMap

protected java.util.Map fAuditRuleEnabledMap

fLauncherConfig

protected ProtectionLauncherConfigBase fLauncherConfig

fDigestRuntimeConfig

protected DigestRuntimeConfig fDigestRuntimeConfig
Constructor Detail

Product

public Product(java.lang.String aID)
Creates a new instance of the Product

Parameters:
aID - identifier to assign

Product

public Product()
Creates a new instance of the Product

Method Detail

getProductEditionByShortID

public ProductEdition getProductEditionByShortID(int aShortID)
Returns product edition by its short identifier

Parameters:
aShortID - short identifier
Returns:
an instance of the ProductEdition

getShortIDProductEditionMap

public java.util.HashMap getShortIDProductEditionMap()
Returns product edition by short identifier map

Returns:
map

generateProductEditionShortID

protected int generateProductEditionShortID()

assignProductEditionShortIDs

protected void assignProductEditionShortIDs()

getDigestAlgorithm

public int getDigestAlgorithm()

setDigestAlgorithm

public void setDigestAlgorithm(int aDigestAlgorithm)

getSecurityAlgorithm

public java.lang.String getSecurityAlgorithm()
Returns security algorithm to be used to encode and decode licenses

Returns:
resurity algorithm

setSecurityAlgorithm

public void setSecurityAlgorithm(java.lang.String aSecurityAlgorithm)
Specifies security algorithm to be used to encode and decode licenses

Parameters:
aSecurityAlgorithm - resurity algorithm

getIntegrityCodeSnippet

public java.lang.String getIntegrityCodeSnippet()
Returns text of the Integrity code snippet associated with the product

Returns:
text of the Integrity code snippet

setIntegrityCodeSnippet

public void setIntegrityCodeSnippet(java.lang.String anIntegrityCodeSnippet)
Specifies text of the Integrity code snippet associated with the product

Parameters:
anIntegrityCodeSnippet - text of the Integrity code snippet

getLicenseCodeSnippet

public java.lang.String getLicenseCodeSnippet()
Returns text of the license code snippet associated with the product

Returns:
text of the license code snippet

setLicenseCodeSnippet

public void setLicenseCodeSnippet(java.lang.String aLicenseCodeSnippet)
Specifies text of the license code snippet associated with the product

Parameters:
aLicenseCodeSnippet - text of the license code snippet

getIntegrityCodeSnippetFileName

public java.lang.String getIntegrityCodeSnippetFileName()
Returns the name of the file to save the Integrity code snippet to

Returns:
the name of the file

setIntegrityCodeSnippetFileName

public void setIntegrityCodeSnippetFileName(java.lang.String anIntegrityCodeSnippetFileName)
Specifies the name of the file to save the Integrity code snippet to

Parameters:
anIntegrityCodeSnippetFileName - the name of the file

getIntegrityPackageName

public java.lang.String getIntegrityPackageName()
Returns the name of the package for the Integrity code snippet class

Returns:
name of the package

setIntegrityPackageName

public void setIntegrityPackageName(java.lang.String anIntegrityPackageName)
Specifies the name of the package for the Integrity code snippet class

Parameters:
anIntegrityPackageName - name of the package

getLicensePackageName

public java.lang.String getLicensePackageName()
Returns the name of the package for the license code snippet class

Returns:
name of the package

setLicensePackageName

public void setLicensePackageName(java.lang.String aPackageName)
Specifies the name of the package for the license code snippet class

Parameters:
aPackageName - name of the package

getLicenseResourceFolder

public java.lang.String getLicenseResourceFolder()
Deprecated. use getLauncherConfig().getLicenseResourceFolder() instead

Returns resource folder to locate license in

Returns:
resource folder

setLicenseResourceFolder

public void setLicenseResourceFolder(java.lang.String aLicenseResourceFolder)
Deprecated. use getLauncherConfig().setLicenseResourceFolder() instead

Specifies resource folder to locate license in

Parameters:
aLicenseResourceFolder - resource folder

getDecryptKeyBytes

public byte[] getDecryptKeyBytes()
Returns bytes array that specifies key used to decrypt the license.

Returns:
decryption key bytes

setDecryptKeyBytes

public void setDecryptKeyBytes(byte[] aDecryptKeyBytes)
Specifies bytes array that represents key used to decrypt the license.

Parameters:
aDecryptKeyBytes - key bytes

getDecryptKeyBytesStr

public java.lang.String getDecryptKeyBytesStr()
Returns textual representation of the decryption key bytes

Returns:
key bytes in the form "1, 3, ..."

getPrivateKeyBytesStr

public java.lang.String getPrivateKeyBytesStr()
Deprecated. use getDecryptKeyBytesStr() instead

Returns textual representation of the private key bytes

Returns:
key bytes in the form new byte[] {'1', '3', ...}

getPrivateKeyBytes

public byte[] getPrivateKeyBytes()
Deprecated. use getDecryptKeyBytes() instead

Returns private key bytes

Returns:
private key bytes

setPrivateKeyBytes

public void setPrivateKeyBytes(byte[] aPrivateKeyBytes)
Deprecated. use setDecryptKeyBytes(...) instead

Specifies private key bytes

Parameters:
aPrivateKeyBytes - private key bytes

getEncryptKeyBytes

public byte[] getEncryptKeyBytes()
Returns bytes array that specifies key used to encrypt the license.

Returns:
encryption key bytes

getEncryptKeyBytesStr

public java.lang.String getEncryptKeyBytesStr()
Returns textual representation of the encryption key bytes

Returns:
key bytes in the form new byte[] {'1', '3', ...}

setEncryptKeyBytes

public void setEncryptKeyBytes(byte[] aEncryptKeyBytes)
Specifies bytes array that represnts key used to encrypt the license.

Parameters:
aEncryptKeyBytes - encryption key bytes

getPublicKeyBytes

public byte[] getPublicKeyBytes()
Deprecated. use getEncryptKeyBytes() instead

Returns public key bytes

Returns:
public key bytes

setPublicKeyBytes

public void setPublicKeyBytes(byte[] aPublicKeyBytes)
Deprecated. use setEncryptKeyBytes(...) instead

Specifies public key bytes

Parameters:
aPublicKeyBytes - public key bytes

isSecurityKeysConverted

public boolean isSecurityKeysConverted()

setSecurityKeysConverted

public void setSecurityKeysConverted(boolean aSecurityKeysConverted)

convertSecurityKeys

public boolean convertSecurityKeys()

getLicenseFileName

public java.lang.String getLicenseFileName()
Deprecated. use getLauncherConfig().getLicenseFileName() instead

Returns the name of the license e.g. "DemoCalc.key"

Returns:
the name of the license

getSecretStorageFileName

public java.lang.String getSecretStorageFileName()
Deprecated. use getLauncherConfig().getSecretStorageProviders() instead

Returns the name of secret storage file (with no path)

Returns:
file name

setSecretStorageFileName

public void setSecretStorageFileName(java.lang.String aSecretStorageFileName)
Deprecated. use getLauncherConfig().getSecretStorageProviders() instead

Specifies the name of secret storage file

Parameters:
aSecretStorageFileName - file name

getSecretStorageFolder

public java.lang.String getSecretStorageFolder()
Deprecated. use getLauncherConfig().getSecretStorageProviders() instead

Returns the name of secret storage file

Returns:
file name

setSecretStorageFolder

public void setSecretStorageFolder(java.lang.String aSecretStorageFolder)
Deprecated. use getLauncherConfig().getSecretStorageProviders() instead

Returns the name of the folder to locate secret storage file in

Parameters:
aSecretStorageFolder - folder name

isSecretStorageUserHomeRelative

public boolean isSecretStorageUserHomeRelative()
Deprecated. use getLauncherConfig().getSecretStorageProviders() instead

Returns whether secret storage location is the user HOME relative

Returns:
true if secret storage location is the user HOME relative; false otherwise

setSecretStorageUserHomeRelative

public void setSecretStorageUserHomeRelative(boolean aSecretStorageUserHomeRelative)
Deprecated. use getLauncherConfig().getSecretStorageProviders() instead

Specifies that secret storage location should be relative to user HOME

Parameters:
aSecretStorageUserHomeRelative - true if secret storage location should be relative to user HOME; false otherwise

setLicenseFileName

public void setLicenseFileName(java.lang.String aLicenseFileName)
Deprecated. use getLauncherConfig().setLicenseFileName() instead

Specifies name of the license file (with no path)

Parameters:
aLicenseFileName - file name

getLicenseFolder

public java.lang.String getLicenseFolder()
Deprecated. use getLauncherConfig().getLicenseFolder() instead

Returns the name of the folder to locate license in

Returns:
folder name

setLicenseFolder

public void setLicenseFolder(java.lang.String aLicenseFolder)
Specifies the name of the folder to locate license in

Parameters:
aLicenseFolder - folder name

isLicenseUserHomeRelative

public boolean isLicenseUserHomeRelative()
Deprecated. use getLauncherConfig().isLicenseUserHomeRelative() instead

Returns whether license location is relative to the user HOME

Returns:
true if license location is relative to the user HOME; false otherwise

setLicenseUserHomeRelative

public void setLicenseUserHomeRelative(boolean aLicenseUserHomeRelative)
Deprecated. use getLauncherConfig().setLicenseUserHomeRelative() instead

Specifies if the license location should be relative to the user HOME

Parameters:
aLicenseUserHomeRelative - true if the license location is relative to the user HOME; false otherwise

getSiteText

public java.lang.String getSiteText()

setSiteText

public void setSiteText(java.lang.String aSiteText)

getSiteTooltip

public java.lang.String getSiteTooltip()

setSiteTooltip

public void setSiteTooltip(java.lang.String aSiteTooltip)

getSiteURL

public java.lang.String getSiteURL()

setSiteURL

public void setSiteURL(java.lang.String aSiteURL)

getDigestEntries

public java.util.List getDigestEntries()
Return the list of the DigestEntry objects

Returns:
list of the DigestEntry objects

getMajorVersion

public int getMajorVersion()
Returns major version of the product

Returns:
major version

setMajorVersion

public void setMajorVersion(int aMajorVersion)
Specifies major version of the product

Parameters:
aMajorVersion - major version of the product

getMinorVersion

public int getMinorVersion()
Returns minor version of the product

Returns:
minor version of the product

setMinorVersion

public void setMinorVersion(int aMinorVersion)
Specifies minor version of the product

Parameters:
aMinorVersion - minor version of the product

getID

public java.lang.String getID()
Returns product's identifier

Returns:
product's identifier

setID

public void setID(java.lang.String aID)
Specifies product's identifier

Parameters:
aID - product's identifier

getShortID

public int getShortID()
Returns product's short identifier

Returns:
product's short identifier

setShortID

public void setShortID(int aShortID)
Specifies product's short identifier

Parameters:
aShortID - product's short identifier

getProductFeaturesSize

public int getProductFeaturesSize()
Returns count of product's features

Returns:
count of product's features

getProductEditionsSize

public int getProductEditionsSize()
Returns count of product's editions

Returns:
count of product's editions

createProductEdition

public ProductEdition createProductEdition()
Creates a new product edition object

Returns:
an ProductEdition instance

getProductEditions

public java.util.List getProductEditions()
Return the list of product's editions

Returns:
list of product's editions

getName

public java.lang.String getName()
Return product's name

Returns:
product's name

setName

public void setName(java.lang.String aName)
Specifies product's name

Parameters:
aName - product's name

getTypeStr

public static java.lang.String getTypeStr(int aType)
To Do:
refactor me; should be TYPE_HEADLESS_...

getType

public int getType()

setType

public void setType(int aType)

getProductFeatures

public java.util.List getProductFeatures()
Return the list of product's features

Returns:
list of product's features

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getCodeSnippetID

public java.lang.String getCodeSnippetID()

setCodeSnippetID

public void setCodeSnippetID(java.lang.String aCodeSnippetID)

cloneProduct

public Product cloneProduct()
Creates a "deep" copy of this product

Returns:
a new Product instance

update

public Product update(Product aProduct)
Updates specified product

Parameters:
aProduct - product to update
Returns:
specified product

setProtectionLauncherConfig

protected void setProtectionLauncherConfig(ProtectionLauncherConfigBase aConfig)

getProductFeature

public ProductFeature getProductFeature(java.lang.String anID)
Finds product feature by its identifier

Parameters:
anID - product feature's identifier
Returns:
an instance of the ProductFeature; null if product's feature is not found

getProductEdition

public ProductEdition getProductEdition(java.lang.String anID)
Finds product edition by its identifier

Parameters:
anID - product edition's identifier
Returns:
an instance of the ProductEdition; null if product's edition is not found

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getVersionStr

public java.lang.String getVersionStr()
Compose product's version using major an minor version attributes

Returns:
product's version

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getFeedbackText

public java.lang.String getFeedbackText()

setFeedbackText

public void setFeedbackText(java.lang.String aFeedbackText)

getFeedbackTooltip

public java.lang.String getFeedbackTooltip()

setFeedbackTooltip

public void setFeedbackTooltip(java.lang.String aFeedbackTooltip)

getFeedbackURL

public java.lang.String getFeedbackURL()

setFeedbackURL

public void setFeedbackURL(java.lang.String aFeedbackURL)

getLicenseCodeSnippetFileName

public java.lang.String getLicenseCodeSnippetFileName()
Returns the name of the file to save the license code snippet to

Returns:
the name of the file

setLicenseCodeSnippetFileName

public void setLicenseCodeSnippetFileName(java.lang.String aCodeSnippetFileName)
Specifies the name of the file to save the license code snippet to

Parameters:
aCodeSnippetFileName - the name of the file

getDefaultEvalPeriod

public int getDefaultEvalPeriod()
Returns default evaluation period

Returns:
default evaluation period

setDefaultEvalPeriod

public void setDefaultEvalPeriod(int aDefaultEvalPeriod)
Specifies default evaluation period

Parameters:
aDefaultEvalPeriod - default evaluation period

getDefaultGracePeriod

public int getDefaultGracePeriod()
Returns default grace period

Returns:
default grace period

setDefaultGracePeriod

public void setDefaultGracePeriod(int aDefaultGracePeriod)
Specifies default grace period

Parameters:
aDefaultGracePeriod - default grace period

getDefaultAlias

public java.lang.String getDefaultAlias()

setDefaultAlias

public void setDefaultAlias(java.lang.String aDefaultAlias)

getIntegrityClassName

public java.lang.String getIntegrityClassName()
Returns the name of the Integrity code snippet class

Returns:
name of the class

setIntegrityClassName

public void setIntegrityClassName(java.lang.String anIntegrityClassName)
Specifies the name of the Integrity code snippet class

Parameters:
anIntegrityClassName - name of the class

getLicenseClassName

public java.lang.String getLicenseClassName()
Returns the name of the license code snippet class

Returns:
name of the class

setLicenseClassName

public void setLicenseClassName(java.lang.String aLicenseClassName)
Specifies the name of the license code snippet class

Parameters:
aLicenseClassName - name of the class

getCopyright

public java.lang.String getCopyright()
Deprecated. use getLauncherConfig().getCopyright() instead

Returns copyright notice

Returns:
copyright notice

setCopyright

public void setCopyright(java.lang.String aCopyright)
Deprecated. use getLauncherConfig().setCopyright() instead

Specifies copyright notice

Parameters:
aCopyright - copyright notice

getCompany

public java.lang.String getCompany()
Deprecated. use getLauncherConfig().getCompany() instead

Returns the name of the company

Returns:
company name

setCompany

public void setCompany(java.lang.String aCompany)
Deprecated. use getLauncherConfig().setCompany() instead

Specifies name of the company

Parameters:
aCompany - company name

getEmailSubject

public java.lang.String getEmailSubject()
Returns the e-mail message subject

Returns:
subject value

setEmailSubject

public void setEmailSubject(java.lang.String aEmailSubject)
Specifies the e-mail message subject

Parameters:
aEmailSubject - subject value

getEmailText

public java.lang.String getEmailText()
Returns the e-mail message text

Returns:
subject value

setEmailText

public void setEmailText(java.lang.String aEmailText)
Specifies the e-mail message text

Parameters:
aEmailText - text value

getProductFeature

public ProductFeature getProductFeature(int anIndex)
Find product's feature by its index

Parameters:
anIndex - index to find
Returns:
product's feature; null if no feature with such index exist

getProductEdition

public ProductEdition getProductEdition(int anIndex)
Find product's edition by its index

Parameters:
anIndex - index to find
Returns:
product's edition; null if no edition with such index exist

move

public void move(ProductFeature aProductFeature,
                 int anInc)
Moves product's feature up/down movement in the features list

Parameters:
aProductFeature - product feature to move
anInc - index increment to move

getProductLinks

public java.util.List getProductLinks()
Returns the list of the ProductLink objects

Returns:
list

getProductLink

public Product.ProductLink getProductLink(java.lang.String anID)
Finds product's link by its identifier

Parameters:
anID - product feature's identifier
Returns:
an instance of ProductLink; null if product link is not found

getProductLink

public Product.ProductLink getProductLink(int anIndex)
Finds product's link by its index

Parameters:
anIndex - index to find product feature's
Returns:
an instance of ProductLink; null if product link is not found

getLauncherConfig

public ProtectionLauncherConfigBase getLauncherConfig()
To Do:
uncomment for launcher use

getPropertyInfos

public java.util.List getPropertyInfos()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean anEnabled)

getDigestRuntimeConfig

public DigestRuntimeConfig getDigestRuntimeConfig()

setDigestRuntimeConfig

protected void setDigestRuntimeConfig(DigestRuntimeConfig aDigestRuntimeConfig)

getDigestBuildConfigs

public java.util.List getDigestBuildConfigs()

getDigestBuildConfig

public DigestBuildConfig getDigestBuildConfig(java.lang.String anID)

getProtectionLauncherBuildConfig

public ProtectionLauncherBuildConfig getProtectionLauncherBuildConfig(java.lang.String anID)

getProtectionLauncherBuildConfigs

public dev.util.collections.HashedBoundList getProtectionLauncherBuildConfigs()

getAuditRuleEnabledMap

public java.util.Map getAuditRuleEnabledMap()

isAuditRuleEnabled

public boolean isAuditRuleEnabled(java.lang.String anID)

setAuditRuleEnabled

public void setAuditRuleEnabled(java.lang.String anID,
                                boolean isEnabled)

isUseEnterpriseWSPlugin

public boolean isUseEnterpriseWSPlugin()
Returns whether Protection! Enterprise plug-in is used

Returns:
true if Protection! Enterprise plug-in is used; false otherwise
Since:
v5.0

setUseEnterpriseWSPlugin

public void setUseEnterpriseWSPlugin(boolean useEnterpriseWSPlugin)
Specifies whether Protection! Enterprise plug-in should be used

Parameters:
useEnterpriseWSPlugin - true if Protection! Enterprise plug-in should be used; false otherwise
Since:
v5.0

getEnterpriseInstallFolder

public java.lang.String getEnterpriseInstallFolder()
Returns a folder where Protection! Enterprise is installed

Returns:
folder where Protection! Enterprise is installed
Since:
v5.0

setEnterpriseInstallFolder

public void setEnterpriseInstallFolder(java.lang.String enterpriseInstallFolder)
Specifies a folder where Protection! Enterprise is installed

Parameters:
enterpriseInstallFolder - folder where Protection! Enterprise is installed
Since:
v5.0