Class SignatureCreator
Create signatures for module licenses - requires a public and private key to create signature hashes.
Inherited Members
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)
Create signatures for module licenses - requires a public and private key to create signature hashes.
Declaration
public SignatureCreator(SignedPublicKey publicKey, DSACryptoServiceProvider privateKey, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
SignedPublicKey | publicKey | |
DSACryptoServiceProvider | privateKey | |
ILogger | 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.