Show / Hide Table of Contents

CalculateCredentialCommand Class

Namespace: Yubico.YubiKey.Oath.Commands Assembly: Yubico.YubiKey.dll

Performs CALCULATE of OTP (One-Time Password) values for one named credential.

C#
public class CalculateCredentialCommand : OathChallengeResponseBaseCommand, IYubiKeyCommand<CalculateCredentialResponse>
Inheritance object OathChallengeResponseBaseCommand CalculateCredentialCommand
Implements
IYubiKeyCommand<CalculateCredentialResponse>

Constructors

Name Description
CalculateCredentialCommand()

Constructs an instance of the CalculateCredentialCommand class. The ResponseFormat will be set to its default value which is truncated.

CalculateCredentialCommand(Credential, ResponseFormat)

Constructs an instance of the CalculateCredentialCommand class.

Properties

Name Description
Application

Gets the YubiKeyApplication to which this command belongs.

Credential

The credential to calculate.

ResponseFormat

Full or truncated response to receive back.

Methods

Name Description
CreateCommandApdu()

Creates a well-formed CommandApdu to send to the YubiKey.

CreateResponseForApdu(ResponseApdu)

Creates the corresponding IYubiKeyResponse implementation for the current command.

In this article
Back to top Generated by DocFX