Show / Hide Table of Contents

Class SignatureCreator

Create signatures for module licenses - requires a public and private key to create signature hashes.

Inheritance
object
SignatureValidator
SignatureCreator
Inherited Members
SignatureValidator._rootPublicKey
SignatureValidator._testrootPublicKey
SignatureValidator._publicKey
SignatureValidator._signedPublicKey
SignatureValidator.Validate(string, string, ModuleLicense)
SignatureValidator.Validate(LicenseInfo)
SignatureValidator.Validate(SignedPublicKey)
SignatureValidator.Validate(SignedPublicKey, ILogger)
SignatureValidator.Validate(SerialNumberChange)
SignatureValidator.ComputeHash(string, string, ModuleLicense)
SignatureValidator.ComputeHash(LicenseInfo)
SignatureValidator.ComputeHash(SignedPublicKey)
SignatureValidator.ComputeHash(SignedPublicKey, ILogger)
SignatureValidator.ComputeHashOld(SignedPublicKey)
SignatureValidator.ComputeHash(SerialNumberChange)
SignatureValidator.PublicKey
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.License
Assembly: SoLicense.dll
Syntax
public class SignatureCreator : SignatureValidator
Remarks

Requires a full user-profile to work. The .net 4 version of DSACryptoServiceProvider does not support mandatory or temporary user profiles, as found on Citrix installations and in the NETWORKSVC user.

Constructors

SignatureCreator(SignedPublicKey, DSACryptoServiceProvider)

Create signatures for module licenses - requires a public and private key to create signature hashes.

Declaration
public SignatureCreator(SignedPublicKey publicKey, DSACryptoServiceProvider privateKey)
Parameters
Type Name Description
SignedPublicKey publicKey
DSACryptoServiceProvider privateKey
Remarks

Requires a full user-profile to work. The .net 4 version of DSACryptoServiceProvider does not support mandatory or temporary user profiles, as found on Citrix installations and in the NETWORKSVC user.

SignatureCreator(SignedPublicKey, DSACryptoServiceProvider, ILogger<SignatureCreator>)

Create signatures for module licenses - requires a public and private key to create signature hashes.

Declaration
public SignatureCreator(SignedPublicKey publicKey, DSACryptoServiceProvider privateKey, ILogger<SignatureCreator> logger)
Parameters
Type Name Description
SignedPublicKey publicKey
DSACryptoServiceProvider privateKey
ILogger<SignatureCreator> logger
Remarks

Requires a full user-profile to work. The .net 4 version of DSACryptoServiceProvider does not support mandatory or temporary user profiles, as found on Citrix installations and in the NETWORKSVC user.

Methods

Sign(LicenseInfo)

Fill in the Signature and PublicKey fields of the LicenseInfo structure.

Declaration
public void Sign(LicenseInfo info)
Parameters
Type Name Description
LicenseInfo info

The licenses to create signature for

Remarks

The date fields are modified to represent dates without time, and have no timezone info. The Signature and PublicKey fields are updated based on the private key the creator was initalized with.

Sign(SerialNumberChange)

Fill in the signature field on the SerialNumberChange.

Declaration
public void Sign(SerialNumberChange change)
Parameters
Type Name Description
SerialNumberChange change

Describes the from/to serial number change. The Signature field will be modified.

Remarks

Requires a full user-profile to work. The .net 4 version of DSACryptoServiceProvider does not support mandatory or temporary user profiles, as found on Citrix installations and in the NETWORKSVC user.

Sign(string, string, ModuleLicense)

Updates module license with new signature.

Declaration
public void Sign(string serialNr, string companyName, ModuleLicense info)
Parameters
Type Name Description
string serialNr

Customer Serial number

string companyName

Customer Company name

ModuleLicense info

one module - which gets its Signature property updated

Remarks

Requires a full user-profile to work. The .net 4 version of DSACryptoServiceProvider does not support mandatory or temporary user profiles, as found on Citrix installations and in the NETWORKSVC user.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top