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

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

public static class BasicLicenseStorage.EntryLicenseReader
extends LicenseReader

License Reader implementation to allow license reading from the license storage

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 fLicenseEntry
           
protected  java.lang.String fLicenseEntryName
           
 
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
BasicLicenseStorage.EntryLicenseReader(LicenseStorage.LicenseEntry aLicenseEntry, java.lang.String aLicenseEntryName)
          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
protected  void updateLicenseEntryProperties()
           
 
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

fLicenseEntry

protected LicenseStorage.LicenseEntry fLicenseEntry

fLicenseEntryName

protected java.lang.String fLicenseEntryName
Constructor Detail

BasicLicenseStorage.EntryLicenseReader

public BasicLicenseStorage.EntryLicenseReader(LicenseStorage.LicenseEntry aLicenseEntry,
                                              java.lang.String aLicenseEntryName)
Creates a new instance of the EntryLicenseReader

Parameters:
aLicenseEntry - a license entry to create License Reader for
aLicenseEntryName - the name of the 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

updateLicenseEntryProperties

protected void updateLicenseEntryProperties()

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.