C# Class LedgerWallet.U2F.U2FClient

Inheritance: LedgerClientBase
ファイルを表示 Open project: LedgerHQ/ledger-dotnet-api

Public Methods

Method Description
Authenticate ( byte challenge, AppId applicationId, KeyHandle keyHandle, CancellationToken cancellationToken = default(CancellationToken) ) : U2FAuthenticationResponse
GetHIDU2F ( ) : IEnumerable
Register ( AppId applicationId, CancellationToken cancellationToken = default(CancellationToken) ) : U2FRegistrationResponse
Register ( byte challenge, AppId applicationId, CancellationToken cancellationToken = default(CancellationToken) ) : U2FRegistrationResponse
U2FClient ( ILedgerTransport transport ) : System

Protected Methods

Method Description
ExchangeApduNoDataLength ( byte cla, byte ins, byte p1, byte p2, byte data, int &sw ) : byte[]

Private Methods

Method Description
ExchangeApdu ( byte ins, byte p1, byte p2, byte data, CancellationToken cancellationToken ) : byte[]

Method Details

Authenticate() public method

public Authenticate ( byte challenge, AppId applicationId, KeyHandle keyHandle, CancellationToken cancellationToken = default(CancellationToken) ) : U2FAuthenticationResponse
challenge byte
applicationId AppId
keyHandle KeyHandle
cancellationToken System.Threading.CancellationToken
return U2FAuthenticationResponse

ExchangeApduNoDataLength() protected method

protected ExchangeApduNoDataLength ( byte cla, byte ins, byte p1, byte p2, byte data, int &sw ) : byte[]
cla byte
ins byte
p1 byte
p2 byte
data byte
sw int
return byte[]

GetHIDU2F() public static method

public static GetHIDU2F ( ) : IEnumerable
return IEnumerable

Register() public method

public Register ( AppId applicationId, CancellationToken cancellationToken = default(CancellationToken) ) : U2FRegistrationResponse
applicationId AppId
cancellationToken System.Threading.CancellationToken
return U2FRegistrationResponse

Register() public method

public Register ( byte challenge, AppId applicationId, CancellationToken cancellationToken = default(CancellationToken) ) : U2FRegistrationResponse
challenge byte
applicationId AppId
cancellationToken System.Threading.CancellationToken
return U2FRegistrationResponse

U2FClient() public method

public U2FClient ( ILedgerTransport transport ) : System
transport ILedgerTransport
return System