credentialToStorableCredential

Converts a Credential object to a StorableCredential object of the specified CredentialType.

Return

The converted StorableCredential.

Parameters

type

The type of the StorableCredential.

credential

The Credential object to be converted.