Credential
Constructs a new Credential.
Parameters
document
the document to add the credential to.
asReplacementForIdentifier
the identifier of the credential this credential will replace, if not null.
domain
the domain of the credential.
Constructs a Credential from serialized data.
deserialize providing actual serialized data must be called before using this object.
Parameters
document
the Document that the credential belongs to.