com.jp.protection.pub.pro.ls
Class BasicLauncherConfigStorage.EntryLicenseReader

java.lang.Object
  extended by com.jp.protection.pub.LicenseReader
      extended by com.jp.protection.pub.pro.ls.BasicLauncherConfigStorage.EntryLicenseReader
Enclosing class:
BasicLauncherConfigStorage

public static class BasicLauncherConfigStorage.EntryLicenseReader
extends LicenseReader

Specific implementation of the License Reader intended to work with the license entry

Since:
3.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jp.protection.pub.LicenseReader
LicenseReader.FileStorage, LicenseReader.InMemoryStorage, LicenseReader.Storage
 
Field Summary
protected  LicenseStorage.LicenseEntry fEntry
           
protected  BasicLauncherConfigStorage fLauncherConfigStorage
           
 
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
BasicLauncherConfigStorage.EntryLicenseReader(BasicLauncherConfigStorage aLauncherConfigStorage, LicenseStorage.LicenseEntry aEntry)
          Creates a new instance of the EntryLicenseReader
BasicLauncherConfigStorage.EntryLicenseReader(LicenseStorage.LicenseEntry aEntry)
          Creates a new instance of the EntryLicenseReader
 
Method Summary
 java.io.InputStream getLicenseFileInputStream()
          Returns input stream to read license from file
 java.lang.String getLicenseFileLocation()
          Returns path of license file
 java.io.InputStream getLicenseInputStream()
          Returns input stream to read license from
 java.io.OutputStream getLicenseOutputStream()
          Returns output stream to write license to.
 java.io.InputStream getLicenseResourceInputStream()
          Returns input stream to read license from the application resource
 
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, getLicenseFileName, getLicenseFolder, getLicenseProduct, getLicenseResourceFolder, getLicenseResourceLocation, getPrivateKeyBytes, getSecurityAlgorithm, getSecurityProvider, getStorage, getUserHome, isLicenseRead, isPerformLicenseBackups, isSearchLicenseInFile, isSkipEncryption, isUserHomeRelative, isVerbose, 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

fEntry

protected LicenseStorage.LicenseEntry fEntry

fLauncherConfigStorage

protected BasicLauncherConfigStorage fLauncherConfigStorage
Constructor Detail

BasicLauncherConfigStorage.EntryLicenseReader

public BasicLauncherConfigStorage.EntryLicenseReader(BasicLauncherConfigStorage aLauncherConfigStorage,
                                                     LicenseStorage.LicenseEntry aEntry)
Creates a new instance of the EntryLicenseReader

Parameters:
aLauncherConfigStorage - launcher configuration storage
aEntry - license entry

BasicLauncherConfigStorage.EntryLicenseReader

public BasicLauncherConfigStorage.EntryLicenseReader(LicenseStorage.LicenseEntry aEntry)
Creates a new instance of the EntryLicenseReader

Parameters:
aEntry - license entry
Method Detail

getLicenseInputStream

public java.io.InputStream getLicenseInputStream()
Description copied from class: LicenseReader
Returns input stream to read license from

Overrides:
getLicenseInputStream in class LicenseReader
Returns:
input stream to read license from

getLicenseFileInputStream

public java.io.InputStream getLicenseFileInputStream()
Description copied from class: LicenseReader
Returns input stream to read license from file

Overrides:
getLicenseFileInputStream in class LicenseReader
Returns:
input stream to read license from file

getLicenseResourceInputStream

public java.io.InputStream getLicenseResourceInputStream()
Description copied from class: LicenseReader
Returns input stream to read license from the application resource

Overrides:
getLicenseResourceInputStream in class LicenseReader
Returns:
input stream to read license from the application resource

getLicenseFileLocation

public java.lang.String getLicenseFileLocation()
Description copied from class: LicenseReader
Returns path of license file

Overrides:
getLicenseFileLocation in class LicenseReader
Returns:
path of license file

getLicenseOutputStream

public java.io.OutputStream getLicenseOutputStream()
Description copied from class: LicenseReader
Returns output stream to write license to.

Overrides:
getLicenseOutputStream in class LicenseReader
Returns:
output stream to write license to.