Function MemoryCredentialStore.update

Replace the value of an existing credential.

override CredentialStatus update(
  CredentialHandle handle,
  scope ref const(SecretBuffer) replacement
) @safe;

The existing handle stays valid after a successful update.

Parameters

NameDescription
handle Credential to update.
replacement New credential value.

Returns

ok on success or notFound when the saved credential no longer exists.

Examples

auto replacement = SecretBuffer(newTokenBytes);
auto status = store.update(handle, replacement);