Click or drag to resize
LicenseAlias Class
Base, abstract class for implementing License File aliases.
Inheritance Hierarchy

Namespace: com.softwarekey.Client.Licensing
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax
public abstract class LicenseAlias

The LicenseAlias type exposes the following members.

Constructors
  NameDescription
Public methodLicenseAlias
Creates a new LicenseAlias object.
Top
Properties
  NameDescription
Public propertyContents
Gets the contents of the alias file.
Public propertyLastError
Gets the last error that occurred.
Public propertyLastUpdated
Gets the date the alias was last updated.
Public propertyLocation
Gets the location of the alias.
Public propertyType
Gets the type location in which the alias is stored.
Top
Methods
  NameDescription
Public methodCheckAlias
Compares the current license to the alias.
Protected methodCheckAlias(String)
Decrypts and verifies the alias document, and checks its last updated date.
Public methodDeleteAlias
Deletes the current alias.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetMostCurrentAlias
Gets the most current alias from a list.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodWriteAlias
Updates the alias with the most current license file data.
Top
Fields
  NameDescription
Protected fieldm_lastError
The last error that occurred
Top
Remarks

Aliases are simply hidden copies of the License file. Though these may technically exist anywhere you see fit (through custom implementation), currently supported implementations only support use of the file-system and the Windows Registry. The currently supported implementations are listed below:

NameDescription
LicenseFileSystemAliasImplements file-system based aliases, which are hidden copies of the License File which reside on the system's file-system.
LicenseWindowsRegistryAliasImplements Windows Registry based aliases, which are hidden copies of the License File which reside on the system's Registry.
LicenseImageAliasImplements Image based aliases, which are hidden copies of the License File which reside within image pixel data.
Caution note Caution

When aliases are written, this library attempts to write the license file alias to disk, and also attempts to give full permissions everyone access to this file (using WellKnownSidType.WorldSid). This is done to help avoid UAC issues with Windows Vista/2008 and later, and is the same behavior performed by Protection PLUS 4 SDK libraries and Instant Protection PLUS 3. Please see our knowledge-base for additional information.

See Also