Test Product Key Service

Check that a product keys matches the input value.

Must be run by an account authority.

Product keys are hashed; this tests that the value passed in, when hashed, matches the stored hashed product key.

Input

<RunScript>
<nodeVersionReference>library.account.TestProductKeyService</nodeVersionReferenceAccount>
<nodeVersionReferenceProduct/>
<productKey/>
</RunScript>

Output

<TestProductKey>
<errorNumber>0</errorNumber>
<productKeyValid>true|false</productKeyValid>
</TestProductKey>

The productKeyValid element indicates whether the key is valid.

An invalid key still returns an error number of 0.

Errors

101 Not authorised
102 Not found
103 Parameter error

Tag List