目录

AuthenticatorAttestationResponse

Class Info

public class AuthenticatorAttestationResponse

通过Fido2RegistrationResponse的getAuthenticatorAttestationResponse()方法获得注册结果。

Public Method Summary

Qualifier and Type

Method Name and Description

public byte[]

getCredentialId()

获取密钥id,服务器、client做密钥标识用。

public byte[]

getClientDataJson()

获取ClientData JSON数据。

public byte[]

getAttestationObject()

获取认证器返回的验证信息。

public String

toJson()

将AuthenticatorAttestationResponse转换为JSON格式。

Public Methods

[h2]getCredentialId

Method

public byte[] getCredentialId()

获取密钥id,服务器、client做密钥标识用。

Returns

Type

Description

byte[]

密钥id。

[h2]getClientDataJson

Method

public byte[] getClientDataJson()

获取client端返回的信息。

Returns

Type

Description

byte[]

client端返回的信息。

[h2]getAttestationObject

Method

public byte[] getAttestationObject()

获取认证器返回的验证信息。

Returns

Type

Description

byte[]

认证器返回的验证信息。

[h2]toJson

Method

public String toJson()

将AuthenticatorAttestationResponse转换为JSON格式。

Returns

Type

Description

String

AuthenticatorAttestationResponse格式化为JSON字符串。