ChangePivPin Field
Namespace: Yubico.YubiKey Assembly: Yubico.YubiKey.dllIndicates that the SDK is requesting the current PIV PIN and a new PIN, in order to change the PIN from the current to the new. Collect both the current and a new PIN.
public const KeyEntryRequest ChangePivPin
Returns
Remarks
When the Request
is this value, the delegate should collect two
PINs and submit them using the SubmitValues
method.
When the KeyEntryData.Request
is this value and the
KeyEntryData.IsRetry
property is false
, the
KeyEntryData
is making the initial request.
When the KeyEntryData.Request
is this value and the
KeyEntryData.IsRetry
property is true
, the
KeyEntryData
is reporting that a previous attempt at changing
the PIN failed and the KeyCollector
should try again to obtain
the values (unless the user decides to cancel).
Note that the most likely reason a change will fail is because the current PIN was incorrect, but it can also fail if the new PIN is not valid (e.g. too short).