www.icetips.com  Icetips Utilities Documentation 11/14/2010    

Armadillo Code Generator Class: CreateCodeShort3Key

Previous  Top  Next  


Prototype: (Byte pLevel, String pName, String pTemplate, Long pDays=0),STRING

 

pLevelThe signature level for the key.  Valid values are 1-10 both included.
pNameThe user name to create the key for. 
pTemplateThe encryption template that will be used to encrypt the key.
pDaysThe number of days that the certificate is valid for.  0 (zero) indicates a permanent certificate

 

ReturnsThe 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)

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/createcodeshort3key_armadillocgc.htm