|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.pub.pro.ls.BasicLicenseStorage.BasicLicenseEntry
public static class BasicLicenseStorage.BasicLicenseEntry
Basic implementation of the LicenseEntry interface
| Field Summary | |
|---|---|
protected BasicLicenseStorage |
fBasicLicenseStorage
|
protected int |
fID
|
protected byte[] |
fLicenseBytes
|
protected java.lang.String |
fLicenseNumber
|
protected int |
fLicenseType
|
protected int |
fMajorVersion
|
protected int |
fMinorVersion
|
protected java.lang.String |
fProduct
|
protected java.lang.String |
fProductEdition
|
protected java.beans.PropertyChangeSupport |
fPropertyChangeSupport
|
protected int |
fUserLicensingModel
|
static java.lang.String |
PROPERTY_LICENSE_BYTES
|
static java.lang.String |
PROPERTY_LICENSE_NUMBER
|
static java.lang.String |
PROPERTY_LICENSE_TYPE
|
static java.lang.String |
PROPERTY_MAJOR_VERSION
|
static java.lang.String |
PROPERTY_MINOR_VERSION
|
static java.lang.String |
PROPERTY_PRODUCT
|
static java.lang.String |
PROPERTY_PRODUCT_EDITION
|
static java.lang.String |
PROPERTY_USER_LICENSING_MODEL
|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
BasicLicenseStorage.BasicLicenseEntry(int anID)
Creates a new instance of the BasicLicenseEntry |
|
BasicLicenseStorage.BasicLicenseEntry(int anID,
byte[] aLicenseBytes,
java.lang.String aProduct)
Creates a new instance of the BasicLicenseEntry |
|
BasicLicenseStorage.BasicLicenseEntry(int anID,
byte[] aLicenseBytes,
java.lang.String aProduct,
java.lang.String aProductEdition,
int aMajorVersion,
int aMinorVersion,
int aLicenseType)
Creates a new instance of the BasicLicenseEntry |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener to the listeners list |
boolean |
equals(java.lang.Object anOther)
|
BasicLicenseStorage |
getBasicLicenseStorage()
Returns license storage this license entry belongs to |
int |
getID()
Returns unique identifier |
byte[] |
getLicenseBytes()
Returns license bytes |
java.lang.String |
getLicenseNumber()
Returns license number |
int |
getLicenseType()
Returns license type |
int |
getMajorVersion()
Returns major version |
int |
getMinorVersion()
Returns minor version |
java.lang.String |
getProduct()
Returns product identifier |
java.lang.String |
getProductEdition()
Returns product edition identifier |
java.beans.PropertyChangeSupport |
getPropertyChangeSupport()
Returns an instance of the PropertyChangeSupport used to fire corresponding events |
int |
getUserLicensingModel()
Returns user licensing model |
int |
hashCode()
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener from the listeners list |
protected void |
setBasicLicenseStorage(BasicLicenseStorage aBasicLicenseStorage)
|
void |
setLicenseBytes(byte[] aLicenseBytes)
Specifies license bytes for the entry |
void |
setLicenseNumber(java.lang.String aLicenseNumber)
Specifies license number for the entry |
void |
setLicenseType(int aLicenseType)
Specifies license type for the entry |
void |
setMajorVersion(int aMajorVersion)
Specifies major version for the entry |
void |
setMinorVersion(int aMinorVersion)
Specifies minor version for the entry |
void |
setProduct(java.lang.String aProduct)
Specifies product identifier for the entry |
void |
setProductEdition(java.lang.String aProductEdition)
Specifies product edition identifier for the entry |
void |
setUserLicensingModel(int aUserLicensingModel)
Specifies user licensing model for the entry |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
public static final java.lang.String PROPERTY_LICENSE_BYTES
public static final java.lang.String PROPERTY_LICENSE_TYPE
public static final java.lang.String PROPERTY_LICENSE_NUMBER
public static final java.lang.String PROPERTY_PRODUCT
public static final java.lang.String PROPERTY_PRODUCT_EDITION
public static final java.lang.String PROPERTY_MAJOR_VERSION
public static final java.lang.String PROPERTY_MINOR_VERSION
public static final java.lang.String PROPERTY_USER_LICENSING_MODEL
protected transient byte[] fLicenseBytes
protected java.lang.String fLicenseNumber
protected int fLicenseType
protected java.lang.String fProduct
protected java.lang.String fProductEdition
protected int fMajorVersion
protected int fMinorVersion
protected int fUserLicensingModel
protected transient BasicLicenseStorage fBasicLicenseStorage
protected transient java.beans.PropertyChangeSupport fPropertyChangeSupport
protected int fID
| Constructor Detail |
|---|
public BasicLicenseStorage.BasicLicenseEntry(int anID)
BasicLicenseEntry
anID - unique identifier to assign
public BasicLicenseStorage.BasicLicenseEntry(int anID,
byte[] aLicenseBytes,
java.lang.String aProduct)
BasicLicenseEntry
anID - unique identifier to be assignedaLicenseBytes - byte[] license bytes to be assignedaProduct - product identifier to be assigned
public BasicLicenseStorage.BasicLicenseEntry(int anID,
byte[] aLicenseBytes,
java.lang.String aProduct,
java.lang.String aProductEdition,
int aMajorVersion,
int aMinorVersion,
int aLicenseType)
BasicLicenseEntry
anID - unique identifier to be assignedaLicenseBytes - byte[] license bytes to be assignedaProduct - product identifier to be assignedaProductEdition - product edition identifier to be assignedaMajorVersion - major version to be assignedaMinorVersion - minor version to be assignedaLicenseType - license type to be assigned| Method Detail |
|---|
public int getID()
LicenseStorage.LicenseEntry
getID in interface LicenseStorage.LicenseEntrypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object anOther)
equals in class java.lang.Objectpublic java.beans.PropertyChangeSupport getPropertyChangeSupport()
PropertyChangeSupport used to fire corresponding events
PropertyChangeSupportpublic BasicLicenseStorage getBasicLicenseStorage()
protected void setBasicLicenseStorage(BasicLicenseStorage aBasicLicenseStorage)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - a listener to addpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - a listener to removepublic byte[] getLicenseBytes()
LicenseStorage.LicenseEntry
getLicenseBytes in interface LicenseStorage.LicenseEntrypublic void setLicenseBytes(byte[] aLicenseBytes)
LicenseStorage.LicenseEntry
setLicenseBytes in interface LicenseStorage.LicenseEntryaLicenseBytes - license bytes to setpublic void setLicenseType(int aLicenseType)
LicenseStorage.LicenseEntry
setLicenseType in interface LicenseStorage.LicenseEntryaLicenseType - license type to setpublic void setMajorVersion(int aMajorVersion)
LicenseStorage.LicenseEntry
setMajorVersion in interface LicenseStorage.LicenseEntryaMajorVersion - major version to setpublic void setMinorVersion(int aMinorVersion)
LicenseStorage.LicenseEntry
setMinorVersion in interface LicenseStorage.LicenseEntryaMinorVersion - minor version to setpublic void setProduct(java.lang.String aProduct)
LicenseStorage.LicenseEntry
setProduct in interface LicenseStorage.LicenseEntryaProduct - product identifier to setpublic void setProductEdition(java.lang.String aProductEdition)
LicenseStorage.LicenseEntry
setProductEdition in interface LicenseStorage.LicenseEntryaProductEdition - product edition identifier to setpublic void setLicenseNumber(java.lang.String aLicenseNumber)
LicenseStorage.LicenseEntry
setLicenseNumber in interface LicenseStorage.LicenseEntryaLicenseNumber - license number to setpublic void setUserLicensingModel(int aUserLicensingModel)
LicenseStorage.LicenseEntry
setUserLicensingModel in interface LicenseStorage.LicenseEntryaUserLicensingModel - user licensing model to setpublic int getLicenseType()
LicenseStorage.LicenseEntry
getLicenseType in interface LicenseStorage.LicenseEntrypublic java.lang.String getProduct()
LicenseStorage.LicenseEntry
getProduct in interface LicenseStorage.LicenseEntrypublic java.lang.String getProductEdition()
LicenseStorage.LicenseEntry
getProductEdition in interface LicenseStorage.LicenseEntrypublic int getMajorVersion()
LicenseStorage.LicenseEntry
getMajorVersion in interface LicenseStorage.LicenseEntrypublic int getMinorVersion()
LicenseStorage.LicenseEntry
getMinorVersion in interface LicenseStorage.LicenseEntrypublic java.lang.String getLicenseNumber()
LicenseStorage.LicenseEntry
getLicenseNumber in interface LicenseStorage.LicenseEntrypublic int getUserLicensingModel()
LicenseStorage.LicenseEntry
getUserLicensingModel in interface LicenseStorage.LicenseEntry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||