GetCurrentValue Method
GetCurrentValue()
Return a reference to the submitted current value.
C#
public ReadOnlyMemory<byte> GetCurrentValue()
Returns
System.ReadOnlyMemory<System.Byte>
A reference to the byte array that is the value requested.
Remarks
There are two possible values: a current and new. For many case,
there will only be a current. But for some operations (such as
changing a PIV PIN), there will be both. To get the current value
(e.g. the PIN if verifying the PIN, or the current PIN if changing
the PIN), call this method. If you want to get the new value, call
the GetNewValue
method.
Note that this method returns a reference to the value, which means
that the actual data returned will be overwritten after the call to
Clear
.