3.3.5.2.2.1 Generate Shared Key and Prepare Payload and Security elements

The client MUST generate a new shared key to be shared by its account (can be a device or a user account) with the server domain. This MUST be a 192-bit MARC4 symmetric key, as defined in section 3.1.1.

The client MUST create an element named "fragment" in the namespace "urn:groove.net". The client then MUST create an element named "Event" as the child of the fragment element, as defined in 2.2.3.19.1 as CreateAccountEventType. The following attributes MUST be added to the Event element:

  • The Domain attribute identifies the domain in which the account is to be created.

  • The GUID attribute identifies the account, either a device or a user.

  • The Encrypted attribute MUST be set to "1".

  • The IsDeviceAccount attribute identifies whether this is a device account or a user account. Set it to "1" for a device account, and "0" for a user account.

  • The Created attribute is the timestamp of the creation time.

The client then MUST create a security element named "SE" in the namespace "urn:groove.net" as the child of the Event element, as defined in section 2.2.3.19.1 as CreateAccountSEType. It contains no content. It is referred to as the security element.