LicenseGenerator.Set

banner art

Previous Next

LicenseGenerator.Set

The Set method specifies license attributes.

Syntax

  LicenseGenerator
  .Set (bstrAttributeName, varAttributeValue)

Parameters

bstrAttributeName

[in] String containing the name of the attribute. This must be one of the following values.

Value Description
Cert1 The first certificate given to Windows Media License Service. The value must be base-64 encoded before it is passed to the method.
Cert2 The second certificate given to Windows Media License Service. The value must be base-64 encoded before it is passed to the method.
Client_verification_public_key_0.1.0.0 The client public key, with the suffix indicating the client version number. Depending on the client version numbers supported, the Set method can be used repeatedly with an attribute name for each client version number. The LicenseGenerator object selects the value based on the client version number in the license request. If there are duplicate entries with the same name, the last one is used. The attribute value must be base-64 encoded before passing it to the method. A maximum of 1,000 client version numbers can be stored by using this method.
Kid The encoded key ID for the requested license. Use this attribute when recovering licenses that have already been issued. This key ID overrides the one in the challenge used in the IssueLicense method.
License_server_private_key The private key assigned to Windows Media License Service. The value must be base-64 encoded before it is passed to the method.
License_server_public_key The public key assigned to Windows Media License Service. The value must be base-64 encoded before it is passed to the method.
Seed The license key seed used to generate a key to unlock the content. The key is a function of this seed and the key ID stored in the content (available through the challenge blob). By using this method, you can select the appropriate license key seed based on the database GUID (database_GUID) value, which is always sent with the license acquisition URL. License key seed selection is not directly supported by the license object. The license object uses only one license key seed.

varAttributeValue

[in] Variant containing the value of the attribute.

Return Values

This method does not return a value.

Remarks

Use this method when a database is not used with Windows Media License Service. If a database is used (a database connection string is passed), any values set by this method are overridden by the values from the database.

Requirements

Version: Windows Media Rights Manager 7 SDK or later

Reference: LicenseServer 1.0 Type Library

Library: licenseserver.dll

Platform: Windows Server 2003

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.