get

open suspend override fun get(credentialId: String): StoredCredential?

Retrieves a credential by its ID from encrypted storage.

Returns null if the credential is not found or if the stored data is corrupted. Corrupted data is logged and treated as absent rather than throwing an exception.

Return

The credential, or null if not found or data is corrupted

Parameters

credentialId

The credential ID to look up

Throws

if the read operation fails due to a storage error