| java.lang.Object com.memoire.vainstall.LicenseKeySupport
All known Subclasses: com.memoire.vainstall.TestLicenseKeySupport, com.memoire.vainstall.DefaultLicenseKeySupport,
LicenseKeySupport | abstract public class LicenseKeySupport (Code) | | this class integrate functionality that is needed to support
license keys. It is not generic enough now, but possibly could
be extended. Subclasses of this class will be created by user.
|
Inner Class :final public class FieldInfo | |
decodeStream | abstract public InputStream decodeStream(InputStream is) throws IOException(Code) | | decode archive.zip stream using infromation supplied in fieldValues
Parameters: is - input steam to decode decrypted stream |
encodeStream | abstract public OutputStream encodeStream(OutputStream is, String key) throws IOException(Code) | | encode archive.zip stream with key supplied as string in
configuration file, this function is called during building install
package
Parameters: is - input steam to encode Parameters: key - key supplied in configuration file encrypted stream |
getFieldInfo | abstract public FieldInfo[] getFieldInfo()(Code) | | get field info for this installer
array of field info. |
getRegistrationPage | abstract public String getRegistrationPage()(Code) | | uri of page that contains registration page,if such uri is not null, then it will be shownto user and launch browser button will be displayeddepending on ui and platform. |
isLicenseKeyValid | abstract public boolean isLicenseKeyValid()(Code) | | true, if license key is valid, this method should be called onlyafter set field values were called. |
needsLicenseKey | abstract public boolean needsLicenseKey()(Code) | | true if license key query step need to be performed |
setFieldValues | abstract public void setFieldValues(String values)(Code) | | set field values, this method coudl be called any number of times.
implementation of this class should keep last passed values.
Parameters: values - array of strings where each element correspond fieldinfo returned from get field info. |
|
|