Show / Hide Table of Contents

SubmitValues Method

SubmitValues(ReadOnlySpan<byte>, ReadOnlySpan<byte>)

Submit the requested values, when there are two values to submit. This is generally used when changing or resetting a value.

C#
public void SubmitValues(ReadOnlySpan<byte> currentValue, ReadOnlySpan<byte> newValue)

Parameters

Type Name Description
ReadOnlySpan<byte> currentValue

The current key, PIN, password, or whatever was requested.

ReadOnlySpan<byte> newValue

A new key, PIN, password, or whatever was requested.

Remarks

When the KeyCollector delegate obtains the values to return (both the current and new keys, PINs, passwords, or whatever was requested), it calls this method to load them into the KeyEntryData object. The code that called the KeyCollector will be able to get the data returned using the appropriate GetValue methods.

Note that the KeyEntryData object will copy the values passed in (it will not simply copy references). Therefore, it is safe to overwrite the data once SubmitValues has completed.

For example, suppose the PIV PIN is being changed. The SDK will call the KeyCollector with the Request of ChangePivPin. The KeyCollector will collect the current PIN and a new PIN, then call SubmitValues with both of those values.

In this article
Back to top Generated by DocFX