LicensingUtilsCreateLicense Method (String, String, String, XmlElement, String, LicenseType, Int32, Boolean, DateTime, DateTime, ListString, String, XmlElement, XmlElement) |
Creates a license XML document with a license certificate.
Namespace:
PDTec.IceNet.Sdk.Utils
Assembly:
PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax public static byte[] CreateLicense(
string licenseNumber,
string keySchemaName,
string xmlRsaKeyPair,
XmlElement xeCertificate,
string customer,
LicenseType licenseType,
int users,
bool isServerIndependent,
DateTime startDate,
DateTime expirationDate,
List<string> alMacAddresses,
string comment,
XmlElement xeRestrictions,
XmlElement xeAdditionalContent
)
Parameters
- licenseNumber
- Type: SystemString
The license number. - keySchemaName
- Type: SystemString
The key schema name. - xmlRsaKeyPair
- Type: SystemString
The RSA private key encoded in XML. - xeCertificate
- Type: System.XmlXmlElement
The license certificate. - customer
- Type: SystemString
The customer name. - licenseType
- Type: PDTec.IceNet.Core.RuntimeLicenseType
The license type. - users
- Type: SystemInt32
The number of licensed users. - isServerIndependent
- Type: SystemBoolean
Indicates if the license is server-independent. - startDate
- Type: SystemDateTime
The start date. - expirationDate
- Type: SystemDateTime
The expiration date. - alMacAddresses
- Type: System.Collections.GenericListString
The list of MAC addresses in "00:00:00:00:00:00" format. - comment
- Type: SystemString
The comment displayed in the license document. - xeRestrictions
- Type: System.XmlXmlElement
The application/restrictions section. - xeAdditionalContent
- Type: System.XmlXmlElement
The feature/additional content section.
Return Value
Type:
ByteThe license XML document.
See Also