Show / Hide Table of Contents

CalculateAllCredentials Method

CalculateAllCredentials(ResponseFormat)

Gets OTP (One-Time Password) values for all configured credentials on the YubiKey.

C#
public IDictionary<Credential, Code> CalculateAllCredentials(ResponseFormat responseFormat = ResponseFormat.Truncated)

Parameters

Type Name Description
ResponseFormat responseFormat

Full or truncated ResponseFormat to receive back. The default value is Truncated.

Returns

IDictionary<Credential, Code>

The dictionary of Credential and Code pairs.

Exceptions

Type Condition
InvalidOperationException

There is no KeyCollector loaded if the authentication is required, the CalculateAllCredentialsCommand failed, or the CalculateCredentialCommand failed.

SecurityException

Unable to verify password either because KeyCollector was canceled by the user or an incorrect password was provided if authentication is required.

Remarks

CalculateAllCredentialsCommand doesn't return a Code for HOTP credentials and credentials requiring touch. They will need to be calculated separately using CalculateCredentialCommand.

In this article
Back to top Generated by DocFX