Skip to content

Latest commit

 

History

History
101 lines (49 loc) · 4.83 KB

CTAPcs_ReadMe_05.md

File metadata and controls

101 lines (49 loc) · 4.83 KB

HidParam

public class CTAPCommandMakeCredentialParam

HidParam はHIDAuthenticatorConnectorクラスのコンストラクタに指定します。

HidParamで検索対象のHIDタイプのFIDOキーを指定します。

HIDデバイスはベンダーID、プロダクトID、DescriptionをもっておりHIDタイプのFIDOキーも製品毎に異なっています。

HIDAuthenticatorConnectorクラスのGetAllHIDDeviceInfo()でベンダーID、プロダクトIDを調査することもできますが、とりあえず、GetDefaultParams() で主要なFIDOキーのHidParmを作成することができます。あるいは、HIDAuthenticatorConnectorのコンストラクタにHidParamを指定しなければ GetDefaultParams() が適用されます。

member
int VendorId 検索対象のベンダーID
int ProductId 検索対象のプロダクトID。0の場合は全てのプロダクトID
string Something 検索対象のDescription
method 機能 備考
static List<HidParam>
GetDefaultParams()
主要なFIDOキーのHidParmを作成する 詳細はHIDParam.cs参照

CTAPCommandMakeCredentialParam

public class CTAPCommandMakeCredentialParam

CTAPCommandMakeCredentialParamはAuthenticatorConnectorクラスMakeCredentialAsyncメソッドの引数です。

member
string RpId
string RpName
byte[] UserId
string UserName
string UserDisplayName
bool Option_rk
bool Option_uv
5.1. authenticatorMakeCredential (0x01)
method 機能 備考
public
CTAPCommandMakeCredentialParam
(string rpid, byte[] challenge,byte[] userid)
コンストラクタ 引数はコマンド実行に必須のメンバ

CTAPCommandGetAssertionParam

public class CTAPCommandGetAssertionParam

CTAPCommandGetAssertionParamはAuthenticatorConnectorクラスCTAPCommandGetAssertionメソッドの引数です。

member
string RpId
byte[] ClientDataHash
byte[] AllowList_CredentialId
bool Option_up
bool Option_uv
5.2. authenticatorGetAssertion (0x02)
method 機能 備考
CTAPCommandGetAssertionParam
(string rpid,byte[] challenge,byte[] credentialid=null)
コンストラクタ 引数はコマンド実行に必須のメンバ

Serializer

public class Serializer

Attestationクラス、Assertionクラスをシリアライズ、デシリアライズします。

method
static byte[]
Serialize
(Attestation att)
Attestationをシリアライズします
static Attestation
DeserializeAttestation
(byte[] byteData)
Attestationをデシリアライズします
static byte[]
Serialize
(Assertion ass)
Assertionをシリアライズします
static Assertion
DeserializeAssertion
(byte[] byteData)
Assertionをデシリアライズします