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)
Parameters
Type | Name | Description |
---|---|---|
ResponseFormat | responseFormat | Full or truncated ResponseFormat to receive back. The default value is Truncated. |
Returns
The dictionary of Credential and Code pairs.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | There is no KeyCollector loaded if the authentication is required, the CalculateAllCredentialsCommand failed, or the CalculateCredentialCommand failed. |
System.Security.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.