createCredential
abstract fun createCredential(@NonNull credentialName: String, @NonNull docType: String): WritableIdentityCredential
Creates a new credential.
Note that the credential is not persisted until calling personalize on the returned WritableIdentityCredential object.
Return
A WritableIdentityCredential that can be used to create a new credential.
Parameters
credentialName
The name used to identify the credential.
docType
The document type for the credential.
Throws
if a credential with the given name already exists.
if the given document type isn't supported by the store.