MdocCredential
Constructs a Credential from serialized data.
generateKey providing actual serialized data must be called before using this object.
Parameters
document
the Document that the credential belongs to.
dataItem
the serialized data.