|
MdmCertCtrlApi::GeneratePackageAsync2 |
( |
params |
pPackageInfo, |
|
|
params |
pCertificate, |
|
|
params |
pRecipients, |
|
|
params |
pNotification, |
|
|
[out] wstring |
wstrRequestId |
|
) |
| |
Publishes installation packages for the users.
- Parameters:
-
| pPackageInfo | (params) contains protocol-specific package information, it may be passed in 2 forms, only one form must be presented.
|
| pCertificate | (params) certificate parameters (optional)
Attribute | Type | Description | Additional information |
Certificate: (optional, see Common format for certificate params), if omitted it will be generated: |
"CPublic" | (paramBinary) | certificate | PEM format |
"CPrivate" | (paramBinary) | private key for "CPublic" | encrypted by "CPassword" |
"CPKCS12" | (paramBinary) | certificate | PFX format, used if "CPublic" and "CPrivate" are not specified |
"CPassword" | (paramBinary) | password for "CPrivate" or "CPKCS12" | encrypted |
Other parameters: |
"CExpiryPeriod" | (paramInt) | certificate validity expiry period in days | |
"CBits" | (paramInt) | key length | |
"CPKITemplate" | (paramString) | PKI template name | encrypted |
|
| pRecipients | (params) recipient parameters
Attribute | Type | Description | Additional information |
"ul_binId" | (paramBinary) | universal user id. See ul_binId | mandatory |
"ul_wstrMail" | (paramString) | EMail address | optional |
"ul_wstrMailExtra" | (paramString) | additional EMail address | optional |
"User_wstrMailAlt" | (paramString) | alternative email | optional |
|
| pNotification | (params) method of notifying the user (optional)
Attribute | Type | Description | Additional information |
"NMwstrNotification" | (paramString) | Notification text for mail | may contain URL% and/or PASS% template |
"NMwstrNotificationSubject" | (paramString) | Notification subject for mail | |
|
[out] | wstrRequestId | (wstring) identity of asynchronous operation:
- to cancel operation call MdmCertCtrlApi::CancelGeneratePackage;
- to get status body use AsyncActionStateChecker::CheckActionState, lStateCode "1" means OK and "0" means fail;
- to get result use AsyncActionStateChecker::CheckActionState, pStateData contains:
Attribute | Type | Description | Additional information |
"AKLWNGTMDM_GenPkgAsyncResult_Url" | (paramString) | MDM Package Type | if success, for 'File Url' and 'Config Url' package types (see MDM Package Type) |
"AKLWNGTMDM_GenPkgAsyncResult_Pwd" | (paramString) | Password | if success, for 'File Url' package type only |
"AKLWNGTMDM_GenPkgAsyncResult_ErrorDesc" | (paramString) | description of package generation error | if it occurred |
|
|