|
Previous Top Next |
Prototype: | (Byte pLevel, String pName, String pTemplate, Long pDays=0),STRING |
pLevel | The signature level for the key. Valid values are 1-10 both included. |
pName | The user name to create the key for. |
pTemplate | The encryption template that will be used to encrypt the key. |
pDays | The number of days that the certificate is valid for. 0 (zero) indicates a permanent certificate |
Returns | The key generated. |
This method calls the CreateCodeShort3 function in the CodeGen.dll to generate the key. Note that this method does not support generating keys for hardware locked certificates. This method also sets the Template and ExpireInDays properties so you can query them after calling the method if you need to.
Example:
ITA ITArmCodGenClass
Code
Level = 10 !! Fixed to level 10
Name = CUS:Name !! Customer name
Template = ARM:ProductEncTemplate !! Product encryption template
ProductKey = ITA.CreateCodeShort3Key (:Level, Name, Template)
Display(?ProductKey)