Click or drag to resize

KeyInformation Class

A class that stores information about a key. Note, if the Valid=false, no more information (creation date, etc) will be stored in the Key Information object.
Inheritance Hierarchy
SystemObject
  SKGLKeyInformation

Namespace:  SKGL
Assembly:  SKM (in SKM.dll) Version: 4.0.2.6 (4.0.2.6)
Syntax
[SerializableAttribute]
public class KeyInformation

The KeyInformation type exposes the following members.

Constructors
  NameDescription
Public methodKeyInformation
Initializes a new instance of the KeyInformation class
Top
Properties
  NameDescription
Public propertyAuth
This allows you to store a copy of a specific access token used to access information related to this key.
Public propertyCreationDate
The date when the key was generated.
Public propertyCustomer
The customer id associated with this key. Customer will only be stored if 'signCustomer' was set to true. Null otherwise.
Public propertyDate
The date when the key was validated/activated. Date will only be stored if 'signDate' was set to true. Null otherwise.
Public propertyExpirationDate
The specified expiration date.
Public propertyFeatures
The 8 different features that are stored in the key.
Public propertyId
This is the id of the license key.
Public propertyKey
The initial key used during activation or validation.
Public propertyMid
The mid (machine id) that was provided as an input parameter. Mid will only be stored if 'signMid' was set to true. Null otherwise.
Public propertyNewKey
In some cases, KeyActivation will return the new key that will be stored in this variable. If there are no changes to the key, this field will be left empty (in most cases). Changes to the key will only occur if you use SKGL instead of SKM15. If certain methods are used, this field will contain the initial key. However, it's better to use the Key field for that.
Public propertyNotes
The notes field of a given key. Make sure to enable access to notes field on http://serialkeymanager.com/Account/Manage.
Public propertyPid
The product id (pid) that was provided as an input parameter. Pid will only be stored if 'signPid' was set to true. Null otherwise.
Public propertySetTime
The number of days a key should be valid.
Public propertySignature
When secure option is set to true, this variable will contain the signature of the information that the server returns. It is a signature of almost all variables stored in this variable except for NewKey.
Public propertyTimeLeft
The number of days before the key expires. NOTE: If you don't check the license regularly (i.e. at application start up), it's better to use DaysLeft(KeyInformation). When KeyInformation is not updated, TimeLeft will not be updated either.
Public propertyUid
The user id (uid) that was provided as an input parameter. Uid will only be stored if 'signUid' was set to true. Null otherwise.
Public propertyValid
True if the key is valid. False otherwise.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
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.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasFeature
Checks so that a certain Feature is enabled (i.e. it's set to TRUE).
(Defined by ExtensionMethods.)
Public Extension MethodHasNotExpired
Checks that they key has not expired (i.e. the expire date has not been reached).
(Defined by ExtensionMethods.)
Public Extension MethodHasNotFeature
Checks so that a certain Feature is disabled (i.e. it's set to FALSE).
(Defined by ExtensionMethods.)
Public Extension MethodHasValidSignature(String)Overloaded.
Checks that this object has a valid signature, which means that the content has not been altered after that it was generated by Serial Key Manager.
(Defined by ExtensionMethods.)
Public Extension MethodHasValidSignature(String, NullableInt32)Overloaded.
Checks that this object has a valid signature, which means that the content has not been altered after that it was generated by Serial Key Manager.
(Defined by ExtensionMethods.)
Public Extension MethodIsOnRightMachineOverloaded.
Checks so that the machine code corresponds to the machine code of this computer. The default hash function is SHA1.
(Defined by ExtensionMethods.)
Public Extension MethodIsOnRightMachine(FuncString, String)Overloaded.
Checks so that the machine code corresponds to the machine code of this computer.
(Defined by ExtensionMethods.)
Public Extension MethodIsValidOverloaded.
Checks that the Key Information object is valid (in the correct format). You can always add constraints such as @HasNotExpired(KeyInformation, Boolean).
(Defined by ExtensionMethods.)
Public Extension MethodIsValid(String)Overloaded.
Checks that the Key Information object is valid (in the correct format). You can always add constraints such as @HasNotExpired(KeyInformation, Boolean).
(Defined by ExtensionMethods.)
Public Extension MethodLoadFromFile(String)Overloaded.
Load a saved object from file (using @SaveToFile(KeyInformation, String)).
(Defined by ExtensionMethods.)
Public Extension MethodLoadFromFile(String, Boolean, Boolean)Overloaded.
Load a saved object from file (using @SaveToFile(KeyInformation, String)).
(Defined by ExtensionMethods.)
Public Extension MethodSaveToFile(String)Overloaded.
Save the current object into a file. It can be read using @LoadFromFile(KeyInformation, String).
(Defined by ExtensionMethods.)
Public Extension MethodSaveToFile(String, Boolean)Overloaded.
Save the current object into a file. It can be read using @LoadFromFile(KeyInformation, String).
(Defined by ExtensionMethods.)
Top
See Also