EnumerateCredentialsForRelyingParty Method
EnumerateCredentialsForRelyingParty(RelyingParty)
This performs the enumerateCredentials
(Begin and
GetNextCredential) subcommands of the
authenticatorCredentialManagement
command. It gets a list of
all the credentials associated with a specified relying party.
public IReadOnlyList<CredentialUserInfo> EnumerateCredentialsForRelyingParty(RelyingParty relyingParty)
Parameters
Type | Name | Description |
---|---|---|
RelyingParty | relyingParty | The relying party for which the list of credentials is requested. |
Returns
A list of CredentialUserInfo
objects, one for each
credential.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The connected YubiKey does not support CredentialManagement, or the PIN was invalid, or there was no KeyCollector. |
System.OperationCanceledException | The user canceled the operation while collecting the PIN. |
System.Security.SecurityException | The PIN retry count was exhausted. |
Remarks
See the User's Manual entry on credential management.
This method returns a list of CredentialUserInfo
objects. Each object contains information about one of the
discoverable credentials associated with the specified relying party
on the YubiKey. If there are no discoverable credentials on the
YubiKey associated with the relying party, then the list will have no
elements (Count
will be zero).
The CredentialUserInfo
object contains properties for
CredentialId,
CredentialPublicKey,
CredProtectPolicy, and possibly
LargeBlobKey,