3.2.5.2.2 CreateAccount
This method provides a mechanism for the management server to register a client account.
Request Validation:
Parameter |
Validation conditions |
Fault code |
---|---|---|
DomainGUID |
The DomainGUID MUST belong to a domain on the management server |
209: Domain not found |
AccountGUID |
There MUST be an entry in the Accounts table with AccountGUID and DomainGUID as key |
200: Account not found |
Payload |
There MUST be no security errors in processing the payload |
205: Unknown security error processing event |
CSMKey |
This parameter MUST be present and not empty |
204: A required parameter was missing or invalid |
Data Processing:
The data processing specified in this section references the domains and accounts tables specified in the abstract data model.
The management server MUST locate the domain using domain GUID as the key; the management server MUST obtain the secret key by decrypting CSMKey using the domain's private key.
The management server MUST create a new entry in the accounts table with domain GUID, account GUID, and secret key.
If the account is a device account, the management server MUST create a new device account table entry.
Results:
If no faults occur during the operation, the management server MUST return a CreateAccountResponse message as defined in section 2.2.3.20.
The following sections specify the processing sequences and rules for CreateAccount method.